Skip to content

Commit 7a249ed

Browse files
committed
Distribute firmwaredl binary
1 parent ffa3cf5 commit 7a249ed

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed

contrib/build_bin.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ TZ=UTC find ${lib_dir} -name '*.py' -type f -execdir touch -t "201901010000.00"
2323
# Make the standalone binary
2424
export PYTHONHASHSEED=42
2525
poetry run pyinstaller hwi.spec
26+
poetry run pyinstaller firmwaredl.spec
2627
unset PYTHONHASHSEED
2728

2829
# Make the final compressed package
@@ -32,5 +33,5 @@ OS=`uname | tr '[:upper:]' '[:lower:]'`
3233
if [[ $OS == "darwin" ]]; then
3334
OS="mac"
3435
fi
35-
tar -czf "hwi-${VERSION}-${OS}-amd64.tar.gz" hwi
36+
tar -czf "hwi-${VERSION}-${OS}-amd64.tar.gz" hwi firmwaredl
3637
popd

contrib/build_wine.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,11 @@ $POETRY install
7272
# Do the build
7373
export PYTHONHASHSEED=42
7474
$POETRY run pyinstaller hwi.spec
75+
$POETRY run pyinstaller firmwaredl.spec
7576
unset PYTHONHASHSEED
7677

7778
# Make the final compressed package
7879
pushd dist
7980
VERSION=`$POETRY run hwi --version | cut -d " " -f 2 | dos2unix`
80-
zip "hwi-${VERSION}-windows-amd64.zip" hwi.exe
81+
zip "hwi-${VERSION}-windows-amd64.zip" hwi.exe firmwaredl.exe
8182
popd

firmwaredl.spec

+32
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)