Skip to content

Commit 47ea332

Browse files
Update build-exe.yml
1 parent e5b18f6 commit 47ea332

1 file changed

Lines changed: 9 additions & 13 deletions

File tree

.github/workflows/build-exe.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,27 +30,24 @@ jobs:
3030
with:
3131
nuitka-version: main
3232

33-
# --- CORRECTED AND OPTIMIZED CONFIGURATION ---
33+
# --- FINAL CORRECTED CONFIGURATION ---
3434

35-
# 1. EXPLICITLY SET THE C COMPILER
36-
# This is the most critical fix. It ensures Nuitka finds and uses the MSVC compiler.
37-
msvc-version: 'latest'
35+
# This is the corrected input name to specify the MSVC compiler.
36+
msvc: 'latest'
3837

39-
# 2. ENABLE PLUGINS
40-
# Instrument control apps often use Qt and NumPy. These plugins are essential
41-
# for Nuitka to find all necessary files and hidden imports.
38+
# Enable plugins for GUI and scientific libraries.
4239
enable-plugins: "qt-binding,numpy"
4340

44-
# Pass Nuitka command-line arguments directly with the script name.
41+
# Pass Nuitka command-line arguments.
4542
script-name: PICA_Launcher_V4.py --onefile
4643

47-
# 'disable-console' is the correct input for the action to hide the command window.
44+
# Hide the console window.
4845
disable-console: true
4946

50-
# This is a valid action input. Ensure the path is correct from the repo root.
47+
# Set the application icon.
5148
windows-icon-from-ico: _assets/LOGO/UGC_DAE_CSR.ico
5249

53-
# For including data directories, the format is source=destination.
50+
# Include necessary data directories.
5451
include-data-dir: |
5552
_assets=_assets
5653
Delta_mode=Delta_mode
@@ -66,8 +63,7 @@ jobs:
6663
uses: svenstaro/upload-release-action@v2
6764
with:
6865
repo_token: ${{ secrets.GITHUB_TOKEN }}
69-
# Nuitka automatically puts the onefile executable in a '.dist' folder
70-
# e.g., PICA_Launcher_V4.dist/PICA_Launcher_V4.exe
66+
# Nuitka's --onefile mode creates a .dist folder for the output.
7167
file: PICA_Launcher_V4.dist/PICA_Launcher_V4.exe
7268
asset_name: PICA_Launcher-Windows-${{ github.ref_name }}.exe
7369
tag: ${{ github.ref }}

0 commit comments

Comments
 (0)