Skip to content

Commit f1338db

Browse files
committed
- add hidden import requests
1 parent bb987f5 commit f1338db

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/release.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ jobs:
3232
with:
3333
submodules: "recursive"
3434
- name: pyinstaller
35-
run: "pip install PyInstaller"
35+
run: |
36+
pip install PyInstaller
37+
pip install requests
3638
- name: build
37-
run: pyinstaller scripts\pmbuild.py --onefile -i NONE --distpath build/dist/ --workpath build/work/
39+
run: pyinstaller scripts\pmbuild.py --onefile -i NONE --distpath build/dist/ --workpath build/work/ --hiddenimport=requests
3840
- name: zip
3941
run: Compress-Archive -LiteralPath build/dist -DestinationPath build/Windows-x64.zip
4042
- name: upload
@@ -57,9 +59,11 @@ jobs:
5759
with:
5860
submodules: "recursive"
5961
- name: pyinstaller
60-
run: "python3 -m pip install PyInstaller"
62+
run: |
63+
python3 -m pip install PyInstaller
64+
python3 -m pip install requests
6165
- name: build
62-
run: python3 -m PyInstaller scripts/pmbuild.py -y --onefile -i NONE --distpath build/dist/ --workpath build/work/
66+
run: python3 -m PyInstaller scripts/pmbuild.py -y --onefile -i NONE --distpath build/dist/ --workpath build/work/ --hiddenimport=requests
6367
- name: zip
6468
run: zip -r build/macOS-x64.zip build/dist
6569
- name: upload

0 commit comments

Comments
 (0)