Skip to content

Commit 72d7921

Browse files
committed
Build single exe
1 parent d300e8c commit 72d7921

2 files changed

Lines changed: 11 additions & 18 deletions

File tree

.github/workflows/build_exe.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,17 @@ jobs:
2727
- name: Zip application
2828
run: |
2929
cd dist
30-
cd "Pectus Engine Manager"
31-
tar.exe -a -c -f ../../engine_manager.zip "_internal" "Pectus Engine Manager.exe"
32-
- name: Archive application zip file
30+
move "Open Pectus Engine Manager.exe" ../
31+
- name: Archive application
3332
uses: actions/upload-artifact@v4
3433
with:
3534
name: engine_manager
36-
path: "engine_manager.zip"
35+
path: "Open Pectus Engine Manager.exe"
3736
- uses: ncipollo/release-action@v1
3837
with:
39-
artifacts: "engine_manager.zip"
38+
artifacts: "Open Pectus Engine Manager.exe"
4039
tag: release
41-
body: "Download, unzip and run `Pectus Engine Manager.exe`."
40+
body: "Download and run `Open Pectus Engine Manager.exe`."
4241
allowUpdates: true
4342
makeLatest: true
4443
omitBodyDuringUpdate: true

pyinstaller.spec

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
99

1010

1111
a = Analysis(
12-
['openpectus_engine_manager_gui\\__init__.py'],
12+
['openpectus_engine_manager_gui/__init__.py'],
1313
pathex=[],
1414
binaries=binaries,
1515
datas=datas,
@@ -26,13 +26,16 @@ pyz = PYZ(a.pure)
2626
exe = EXE(
2727
pyz,
2828
a.scripts,
29+
a.binaries,
30+
a.datas,
2931
[],
30-
exclude_binaries=True,
31-
name='Pectus Engine Manager',
32+
name='Open Pectus Engine Manager',
3233
debug=False,
3334
bootloader_ignore_signals=False,
3435
strip=False,
3536
upx=True,
37+
upx_exclude=[],
38+
runtime_tmpdir=None,
3639
console=False,
3740
disable_windowed_traceback=False,
3841
argv_emulation=False,
@@ -41,12 +44,3 @@ exe = EXE(
4144
entitlements_file=None,
4245
icon=['openpectus_engine_manager_gui/icon.ico'],
4346
)
44-
coll = COLLECT(
45-
exe,
46-
a.binaries,
47-
a.datas,
48-
strip=False,
49-
upx=True,
50-
upx_exclude=[],
51-
name='Pectus Engine Manager',
52-
)

0 commit comments

Comments
 (0)