Skip to content

Commit 4eaed91

Browse files
committed
dep update
1 parent dfbcf39 commit 4eaed91

File tree

3 files changed

+18
-15
lines changed

3 files changed

+18
-15
lines changed

.github/workflows/windows.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
strategy:
2121
matrix:
2222
builder: [pyinstaller, nuitka]
23+
env:
24+
PYTHONOPTIMIZATION: 2
2325
runs-on: windows-latest
2426
steps:
2527
- name: Checkout code
@@ -33,8 +35,8 @@ jobs:
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: |

install_windows.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,8 +741,9 @@ def main():
741741
print("请进频道内下载 dbghelp.dll 并放到")
742742
print(f"{qq_exe_path}\n内后再再次运行本程序")
743743
print("频道 http://t.me/LiteLoaderQQNT_Channel ")
744-
input("按 回车键 退出。")
745-
exit()
744+
if not github_actions:
745+
input("按 回车 退出。")
746+
sys.exit()
746747

747748
install_liteloader(file_path)
748749
patch(file_path)

requirements.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# mirror
2-
-i https://pypi.tuna.tsinghua.edu.cn/simple
3-
--extra-index-url https://pypi.org/simple
2+
# -i https://pypi.org/simple
3+
# --extra-index-url https://pypi.tuna.tsinghua.edu.cn/simple
44

5-
requests~=2.32.1
6-
psutil~=5.9.8
7-
rich~=13.7.1
5+
requests~=2.32
6+
psutil~=7.0
7+
rich~=14.1
88

99
# bundles_python_application_tools
10-
nuitka~=2.2.3
11-
pyinstaller~=6.7.0
10+
nuitka~=2.7
11+
pyinstaller~=6.14

0 commit comments

Comments
 (0)