-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add optimized build scripts using Nuitka
- Loading branch information
Showing
5 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
IDI_ICON1 ICON "favicon.ico" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
@echo off | ||
|
||
if "%1"=="" ( | ||
echo Usage: build_fast.bat [RELEASE^|DEV] | ||
exit /b 1 | ||
) | ||
|
||
set COMMON_FLAGS=--standalone --enable-plugin=pyside6 --include-data-dir=assets=assets | ||
|
||
if /I "%1"=="RELEASE" ( | ||
echo Building RELEASE version... | ||
python -m nuitka %COMMON_FLAGS% --windows-console-mode=disable --output-dir=build\release src\main.py --lto=yes | ||
) else if /I "%1"=="DEV" ( | ||
echo Building DEV version... | ||
python -m nuitka %COMMON_FLAGS% --output-dir=build\dev src\main.py | ||
) else ( | ||
echo Invalid argument. Use RELEASE or DEV. | ||
exit /b 1 | ||
) | ||
|
||
if errorlevel 1 ( | ||
echo Build failed. | ||
exit /b 1 | ||
) else ( | ||
echo Build completed successfully. | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters