diff --git a/contrib/build_bin.sh b/contrib/build_bin.sh index e7b550aa6..cc946ffb3 100755 --- a/contrib/build_bin.sh +++ b/contrib/build_bin.sh @@ -23,6 +23,7 @@ TZ=UTC find ${lib_dir} -name '*.py' -type f -execdir touch -t "201901010000.00" # Make the standalone binary export PYTHONHASHSEED=42 poetry run pyinstaller hwi.spec +poetry run pyinstaller firmwaredl.spec unset PYTHONHASHSEED # Make the final compressed package @@ -32,5 +33,5 @@ OS=`uname | tr '[:upper:]' '[:lower:]'` if [[ $OS == "darwin" ]]; then OS="mac" fi -tar -czf "hwi-${VERSION}-${OS}-amd64.tar.gz" hwi +tar -czf "hwi-${VERSION}-${OS}-amd64.tar.gz" hwi firmwaredl popd diff --git a/contrib/build_wine.sh b/contrib/build_wine.sh index b441be0f8..75c704c4e 100755 --- a/contrib/build_wine.sh +++ b/contrib/build_wine.sh @@ -72,10 +72,11 @@ $POETRY install # Do the build export PYTHONHASHSEED=42 $POETRY run pyinstaller hwi.spec +$POETRY run pyinstaller firmwaredl.spec unset PYTHONHASHSEED # Make the final compressed package pushd dist VERSION=`$POETRY run hwi --version | cut -d " " -f 2 | dos2unix` -zip "hwi-${VERSION}-windows-amd64.zip" hwi.exe +zip "hwi-${VERSION}-windows-amd64.zip" hwi.exe firmwaredl.exe popd diff --git a/firmwaredl.spec b/firmwaredl.spec new file mode 100644 index 000000000..d9e44a04e --- /dev/null +++ b/firmwaredl.spec @@ -0,0 +1,32 @@ +# -*- mode: python ; coding: utf-8 -*- + +block_cipher = None + + +a = Analysis(['firmwaredl.py'], + binaries=[], + datas=[], + hiddenimports=[], + hookspath=['contrib/pyinstaller-hooks/'], + runtime_hooks=[], + 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, + a.binaries, + a.zipfiles, + a.datas, + [], + name='firmwaredl', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + upx_exclude=[], + runtime_tmpdir=None, + console=True )