Skip to content

Commit 650beeb

Browse files
committed
update build to no longer use onefile
1 parent 291eec0 commit 650beeb

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,18 @@ jobs:
2828
2929
- name: Build with PyInstaller
3030
run: |
31-
pyinstaller --onefile --windowed --icon=Logo_PyNutil.ico --name PyNutil PyNutilGUI.py
31+
pyinstaller --windowed --icon=Logo_PyNutil.ico --name PyNutil gui/PyNutilGUI.py
3232
33-
# Remove the ZIP archive creation step
33+
- name: Create Windows ZIP archive
34+
run: |
35+
cd dist
36+
powershell Compress-Archive -Path PyNutil -DestinationPath PyNutil-Windows.zip
3437
35-
- name: Upload EXE artifact
38+
- name: Upload Windows artifact
3639
uses: actions/upload-artifact@v4
3740
with:
3841
name: PyNutil-Windows
39-
path: dist/PyNutil.exe # Direct path to the exe file
42+
path: dist/PyNutil-Windows.zip
4043
retention-days: 5
4144

4245
build-macos:
@@ -59,7 +62,7 @@ jobs:
5962
- name: Build with PyInstaller
6063
run: |
6164
# Build without specifying an icon for macOS to avoid format issues
62-
pyinstaller --onefile --windowed --osx-bundle-identifier com.pynutil.app --name PyNutil PyNutilGUI.py
65+
pyinstaller --windowed --osx-bundle-identifier com.pynutil.app --name PyNutil gui/PyNutilGUI.py
6366
6467
- name: Create DMG
6568
run: |
@@ -104,6 +107,6 @@ jobs:
104107
uses: softprops/action-gh-release@v1
105108
with:
106109
files: |
107-
PyNutil-Windows/PyNutil.exe
110+
PyNutil-Windows/PyNutil-Windows.zip
108111
PyNutil-macOS/PyNutil-macOS.dmg
109112
token: ${{ github.token }}

0 commit comments

Comments
 (0)