Skip to content

Commit 007f0a0

Browse files
Update build-exe.yml
1 parent 4792ab0 commit 007f0a0

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/build-exe.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,16 @@ jobs:
2424
python -m pip install --upgrade pip
2525
pip install pyinstaller numpy pandas matplotlib pymeasure pyvisa pyvisa-py Pillow
2626
27-
- name: Build with PyInstaller
28-
run: pyinstaller --onefile --windowed PICA_Launcher_V4.py
27+
# --- KEY CHANGE IS HERE ---
28+
- name: Build with PyInstaller using .spec file
29+
run: pyinstaller PICA_Launcher.spec
2930

3031
- name: Upload Executable to Release
3132
uses: svenstaro/upload-release-action@v2
3233
with:
3334
repo_token: ${{ secrets.GITHUB_TOKEN }}
34-
file: dist/PICA_Launcher_V4.exe
35-
asset_name: PICA_Launcher_V4-Windows-${{ github.ref_name }}.exe
35+
# The name in the .spec file determines the output .exe name
36+
file: dist/PICA_Launcher.exe
37+
asset_name: PICA_Launcher-Windows-${{ github.ref_name }}.exe
3638
tag: ${{ github.ref }}
3739
overwrite: true

0 commit comments

Comments
 (0)