Skip to content

Commit 38eb20d

Browse files
committed
Distribute firmwaredl binary
1 parent 22e4364 commit 38eb20d

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed

contrib/build_bin.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export PYTHONHASHSEED=42
2525
poetry run pyinstaller hwi.spec
2626
poetry run contrib/generate-ui.sh
2727
poetry run pyinstaller hwi-qt.spec
28+
poetry run pyinstaller firmwaredl.spec
2829
unset PYTHONHASHSEED
2930

3031
# Make the final compressed package
@@ -34,5 +35,5 @@ OS=`uname | tr '[:upper:]' '[:lower:]'`
3435
if [[ $OS == "darwin" ]]; then
3536
OS="mac"
3637
fi
37-
tar -czf "hwi-${VERSION}-${OS}-amd64.tar.gz" hwi hwi-qt
38+
tar -czf "hwi-${VERSION}-${OS}-amd64.tar.gz" hwi hwi-qt firmwaredl
3839
popd

contrib/build_wine.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,11 @@ popd
8383
export PYTHONHASHSEED=42
8484
$POETRY run pyinstaller hwi.spec
8585
$POETRY run pyinstaller hwi-qt.spec
86+
$POETRY run pyinstaller firmwaredl.spec
8687
unset PYTHONHASHSEED
8788

8889
# Make the final compressed package
8990
pushd dist
9091
VERSION=`$POETRY run hwi --version | cut -d " " -f 2 | dos2unix`
91-
zip "hwi-${VERSION}-windows-amd64.zip" hwi.exe hwi-qt.exe
92+
zip "hwi-${VERSION}-windows-amd64.zip" hwi.exe hwi-qt.exe firmwaredl.exe
9293
popd

firmwaredl.spec

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# -*- mode: python ; coding: utf-8 -*-
2+
3+
block_cipher = None
4+
5+
6+
a = Analysis(['firmwaredl.py'],
7+
binaries=[],
8+
datas=[],
9+
hiddenimports=[],
10+
hookspath=['contrib/pyinstaller-hooks/'],
11+
runtime_hooks=[],
12+
excludes=[],
13+
win_no_prefer_redirects=False,
14+
win_private_assemblies=False,
15+
cipher=block_cipher,
16+
noarchive=False)
17+
pyz = PYZ(a.pure, a.zipped_data,
18+
cipher=block_cipher)
19+
exe = EXE(pyz,
20+
a.scripts,
21+
a.binaries,
22+
a.zipfiles,
23+
a.datas,
24+
[],
25+
name='firmwaredl',
26+
debug=False,
27+
bootloader_ignore_signals=False,
28+
strip=False,
29+
upx=True,
30+
upx_exclude=[],
31+
runtime_tmpdir=None,
32+
console=True )

0 commit comments

Comments
 (0)