From a5f9e55cf4f746e1dc838bd54d7d6166a24fa5ee Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Mon, 28 Mar 2022 23:15:13 +0000 Subject: [PATCH] fixed build scripts --- build/build-CLI.bat | 4 ++-- build/build-CLI.sh | 2 +- build/superscript.spec | 49 +++++++++++++++--------------------------- 3 files changed, 20 insertions(+), 35 deletions(-) diff --git a/build/build-CLI.bat b/build/build-CLI.bat index e82d752..9fae016 100644 --- a/build/build-CLI.bat +++ b/build/build-CLI.bat @@ -1,5 +1,5 @@ -set pathtospec="../src/superscript.spec" +set pathtospec="superscript.spec" set pathtodist="../dist/" set pathtowork="temp/" -pyinstaller --clean --distpath %pathtodist% --workpath %pathtowork% %pathtospec% +pyinstaller --clean --distpath %pathtodist% --workpath %pathtowork% %pathtospec% \ No newline at end of file diff --git a/build/build-CLI.sh b/build/build-CLI.sh index 48b5721..41b2c8b 100644 --- a/build/build-CLI.sh +++ b/build/build-CLI.sh @@ -2,4 +2,4 @@ pathtospec="superscript.spec" pathtodist="../dist/" pathtowork="temp/" -pyinstaller --clean --distpath ${pathtodist} --workpath ${pathtowork} ${pathtospec} +pyinstaller --clean --distpath ${pathtodist} --workpath ${pathtowork} ${pathtospec} \ No newline at end of file diff --git a/build/superscript.spec b/build/superscript.spec index 53c3d37..439344c 100644 --- a/build/superscript.spec +++ b/build/superscript.spec @@ -11,40 +11,25 @@ a = Analysis( hookspath=[], hooksconfig={}, runtime_hooks=[], - excludes=['matplotlib'], + excludes=[], win_no_prefer_redirects=False, win_private_assemblies=False, cipher=block_cipher, noarchive=False ) -pyz = PYZ( - a.pure, - a.zipped_data, - cipher=block_cipher -) -exe = EXE( - pyz, - a.scripts, - [], - exclude_binaries=True, - name='superscript', - debug=False, - bootloader_ignore_signals=False, - strip=False, - upx=True, - console=True, - disable_windowed_traceback=False, - target_arch=None, - codesign_identity=None, - entitlements_file=None -) -coll = COLLECT( - exe, - a.binaries, - a.zipfiles, - a.datas, - strip=False, - upx=True, - upx_exclude=[], - name='superscript' -) \ No newline at end of file +pyz = PYZ(a.pure, a.zipped_data, + cipher=block_cipher) +exe = EXE(pyz, + a.scripts, + a.binaries, + a.zipfiles, + a.datas, + [('W ignore', None, 'OPTION')], + name='superscript', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + upx_exclude=[], + runtime_tmpdir=None, + console=True ) \ No newline at end of file