From cf07a8958c0fecd190da1caf08e9ed901d84d726 Mon Sep 17 00:00:00 2001 From: Taka Date: Wed, 3 May 2017 08:31:59 +0000 Subject: [PATCH] Changed the way we include the natinfo/ directory in the build. --- _freeze.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/_freeze.py b/_freeze.py index 0f86193..93e6c2a 100644 --- a/_freeze.py +++ b/_freeze.py @@ -29,7 +29,7 @@ extra_files.extend( get_extra_files( "index/*.txt" ) ) extra_files.extend( get_extra_files( "resources/*.ico" ) ) extra_files.extend( get_extra_files( "resources/*.png" ) ) extra_files.extend( get_extra_files( "ui/*.ui" ) ) -# nb: we need the natinfo directory, but it gets pulled in as part of the asl_cards module. +extra_files.append( ( "asl_cards/natinfo" , "asl_cards/natinfo" ) ) if sys.platform == "win32" : # workaround a cx-freeze bug (already fixed, but after 5.0.1 was released) :wall: >:-/ # https://bitbucket.org/anthony_tuininga/cx_freeze/issues/207/sqlite3dll-not-shipped @@ -41,11 +41,12 @@ build_options = { } # freeze the application +# NOTE: We can't call the Linux binary "asl_cards", since we need a directory of the same name :-/ # FIXME! set the app icon target = Executable( "main.py" , base = "Win32GUI" if sys.platform == "win32" else None , - targetName = "asl_cards.exe" if sys.platform == "win32" else "asl_cards" , + targetName = "aslcards.exe" if sys.platform == "win32" else "aslcards" , ) setup( name = APP_NAME ,