Skip to content

Commit 8ed7c33

Browse files
committed
Replace main.spec with build.spec for PyInstaller packaging
1 parent bfdbb32 commit 8ed7c33

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

.github/workflows/build_for_windows..yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
2929
- name: Package Application with PyInstaller
3030
run: |
31-
pyinstaller main.spec
31+
pyinstaller build.spec
3232
3333
- name: Upload debug build artifact
3434
uses: actions/upload-artifact@v4

main.spec renamed to build.spec

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,20 @@ pyz = PYZ(a.pure)
1919
exe = EXE(
2020
pyz,
2121
a.scripts,
22+
a.binaries,
23+
a.datas,
2224
[],
23-
exclude_binaries=True,
24-
name='main',
25+
name='Application',
2526
debug=False,
2627
bootloader_ignore_signals=False,
2728
strip=False,
2829
upx=True,
30+
upx_exclude=[],
31+
runtime_tmpdir=None,
2932
console=True,
3033
disable_windowed_traceback=False,
3134
argv_emulation=False,
3235
target_arch=None,
3336
codesign_identity=None,
3437
entitlements_file=None,
3538
)
36-
coll = COLLECT(
37-
exe,
38-
a.binaries,
39-
a.datas,
40-
strip=False,
41-
upx=True,
42-
upx_exclude=[],
43-
name='main',
44-
)

0 commit comments

Comments
 (0)