2020 strategy :
2121 matrix :
2222 builder : [pyinstaller, nuitka]
23+ env :
24+ PYTHONOPTIMIZATION : 2
2325 runs-on : windows-latest
2426 steps :
2527 - name : Checkout code
3335
3436 - name : Install dependencies
3537 run : |
36- python -m pip install --upgrade pip
37- pip install -r requirements.txt
38+ python3 -m pip install --upgrade pip
39+ python3 -m pip install -r requirements.txt
3840
3941 - name : Download External Data Release
4042 id : download_data
@@ -70,11 +72,11 @@ jobs:
7072 LLtag : ${{ env.LLtag }}
7173 LVtag : ${{ env.LVtag }}
7274 run : |
73- python -m pip install ${{ matrix.builder }}
75+ # python3 -m pip install ${{ matrix.builder }}
7476
7577 if ('${{ matrix.builder }}' -eq 'nuitka') {
7678 $env:NUITKA_CACHE_DIR = "nuitka_cache"
77- nuitka --onefile --windows-uac-admin --include-data -dir="data/"="data/" install_windows.py --output-dir="dist" --output-file="install_windows_nuitka" --assume-yes-for-downloads --enable-plugins="tk-inter" --enable -console --mingw64
79+ nuitka --onefile --windows-uac-admin --include-raw -dir="data/"="data/" install_windows.py --output-dir="dist" --output-file="install_windows_nuitka" --assume-yes-for-downloads --enable-plugins="tk-inter" --windows -console-mode=force --mingw64 --lto=yes --static_libpython=yes
7880 } else {
7981 pyinstaller --onefile --uac-admin --add-data "data/:data/" install_windows.py --distpath dist --name install_windows_pyinstaller
8082 }
@@ -96,14 +98,14 @@ jobs:
9698 - name : Download and Install QQ Software
9799 run : |
98100 # Download QQ software
99- python3 -m pip install requests
101+ # python3 -m pip install requests
100102 python3 get_qqnt.py QQInstaller.exe windows ntDownloadX64Url
101103 # Install QQ silently
102104 Start-Process -FilePath QQInstaller.exe -ArgumentList '/S' -Wait
103105
104106 - name : Run install_windows_${{ matrix.builder }}.exe
105107 run : |
106- echo "\n" | .\dist\install_windows_${{ matrix.builder }}.exe
108+ .\dist\install_windows_${{ matrix.builder }}.exe
107109
108110 - name : Check QQNT Process
109111 run : |
0 commit comments