Skip to content

Commit cb3e01e

Browse files
committed
Fix Nuitka build
1 parent 97b6c23 commit cb3e01e

File tree

1 file changed

+27
-21
lines changed

1 file changed

+27
-21
lines changed

build-nuitka.bat

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -29,34 +29,35 @@ if not defined VERSION (
2929
)
3030

3131
:: Build the executable
32-
::echo --- Building Application (MouseTracks-%VERSION%-windows-x64.exe) ---
33-
::python -m nuitka ^
34-
:: --standalone ^
35-
:: --onefile ^
36-
:: --prefer-source-code ^
37-
:: --output-dir=dist ^
38-
:: --output-filename=MouseTracks-%VERSION%-windows-x64.exe ^
39-
:: --plugin-enable=pyside6 ^
40-
:: --include-data-file=config/colours.txt=config/colours.txt ^
41-
:: --include-data-file=config/AppList.txt=config/AppList.txt ^
42-
:: --include-data-file=config/language/strings/en_GB.ini=config/language/strings/en_GB.ini ^
43-
:: --include-data-file=config/language/keyboard/keys/en_GB.ini=config/language/keyboard/keys/en_GB.ini ^
44-
:: --include-data-file=config/language/keyboard/layout/en_US.txt=config/language/keyboard/layout/en_US.txt ^
45-
:: --include-data-file=resources/images/icon.png=resources/images/icon.png ^
46-
:: --windows-icon-from-ico=resources/images/icon.ico ^
47-
:: --product-name="Mouse Tracks %VERSION%" ^
48-
:: --file-description="Mouse Tracks %VERSION%" ^
49-
:: --product-version=%VERSION% ^
50-
:: --file-version=%VERSION% ^
51-
:: --copyright="Peter Hunt" ^
52-
:: launch.py
32+
echo --- Building Application (MouseTracks-%VERSION%-windows-x64.exe) ---
33+
python -m nuitka ^
34+
--standalone ^
35+
--onefile ^
36+
--prefer-source-code ^
37+
--output-dir=dist ^
38+
--output-filename=MouseTracks-%VERSION%-windows-x64.exe ^
39+
--plugin-enable=pyside6 ^
40+
--include-data-file=config/colours.txt=config/colours.txt ^
41+
--include-data-file=config/AppList.txt=config/AppList.txt ^
42+
--include-data-file=config/language/strings/en_GB.ini=config/language/strings/en_GB.ini ^
43+
--include-data-file=config/language/keyboard/keys/en_GB.ini=config/language/keyboard/keys/en_GB.ini ^
44+
--include-data-file=config/language/keyboard/layout/en_US.txt=config/language/keyboard/layout/en_US.txt ^
45+
--include-data-file=resources/images/icon.png=resources/images/icon.png ^
46+
--windows-icon-from-ico=resources/images/icon.ico ^
47+
--product-name="Mouse Tracks %VERSION%" ^
48+
--file-description="Mouse Tracks %VERSION%" ^
49+
--product-version=%VERSION% ^
50+
--file-version=%VERSION% ^
51+
--copyright="Peter Hunt" ^
52+
launch.py
5353

5454
if errorlevel 1 (
5555
echo Main application build failed.
5656
call deactivate
5757
exit /b 1
5858
)
5959

60+
:: Build the launcher
6061
echo --- Building Launcher (MouseTracks.exe) ---
6162
python -m nuitka ^
6263
--standalone ^
@@ -73,5 +74,10 @@ if errorlevel 1 (
7374
exit /b 1
7475
)
7576

77+
:: Sign the executables
78+
python launch.py --dump-public-key
79+
python launch.py --sign-executable "dist/MouseTracks.exe"
80+
python launch.py --sign-executable "dist/MouseTracks-%VERSION%-windows-x64.exe"
81+
7682
:: Exit the virtual environment
7783
call deactivate

0 commit comments

Comments
 (0)