Skip to content

Commit 0edef5f

Browse files
Update build-exe.yml
1 parent 51154fb commit 0edef5f

1 file changed

Lines changed: 24 additions & 6 deletions

File tree

.github/workflows/build-exe.yml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build Python Executable
1+
name: Build Python Executable with Nuitka
22

33
on:
44
release:
@@ -20,17 +20,35 @@ jobs:
2020
python-version: '3.9'
2121

2222
- name: Install Dependencies
23-
run: pip install pyinstaller numpy pandas matplotlib pymeasure pyvisa pyvisa-py Pillow
23+
run: pip install -r requirements.txt
2424

25-
- name: Build with PyInstaller using .spec file
26-
run: pyinstaller PICA_Launcher.spec
25+
- name: Build with Nuitka
26+
uses: Nuitka/Nuitka-Action@main
27+
with:
28+
nuitka-version: main
29+
script-name: PICA_Launcher_V4.py
30+
standalone: true
31+
onefile: true
32+
windows-disable-console: true
33+
windows-icon-from-ico: _assets/LOGO/UGC_DAE_CSR.ico
34+
# Include all necessary data and script folders
35+
include-data-dir: |
36+
_assets
37+
Delta_mode
38+
Keithley_2400
39+
Keithley_2400_Keithley_2182
40+
Keithley_6517B
41+
LCR_Keysight_E4980A
42+
Lakeshore_350_340
43+
Lock_in_amplifier
44+
Utilities
2745
2846
- name: Upload Executable to Release
2947
uses: svenstaro/upload-release-action@v2
3048
with:
3149
repo_token: ${{ secrets.GITHUB_TOKEN }}
32-
# --- CORRECTED FILE PATH FOR ONE-FILE BUILD ---
33-
file: dist/PICA_Launcher.exe
50+
# Nuitka places the final .exe in the 'build' directory
51+
file: build/PICA_Launcher_V4.exe
3452
asset_name: PICA_Launcher-Windows-${{ github.ref_name }}.exe
3553
tag: ${{ github.ref }}
3654
overwrite: true

0 commit comments

Comments
 (0)