mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-03 10:00:10 +00:00
Fix cert path
This commit is contained in:
parent
67a5e6e1cb
commit
fab21e572c
6
.github/workflows/build-dev.yml
vendored
6
.github/workflows/build-dev.yml
vendored
@ -61,6 +61,9 @@ jobs:
|
||||
- name: Build executable with PyInstaller
|
||||
shell: bash
|
||||
run: |
|
||||
# Get certifi certificate path
|
||||
CERT_PATH=$(python -c "import certifi; print(certifi.where())")
|
||||
|
||||
pyinstaller --onefile --hidden-import=pycryptodomex --hidden-import=ua_generator \
|
||||
--hidden-import=qbittorrentapi --hidden-import=qbittorrent \
|
||||
--hidden-import=bs4 --hidden-import=httpx --hidden-import=rich --hidden-import=tqdm \
|
||||
@ -79,6 +82,7 @@ jobs:
|
||||
--hidden-import=Cryptodome.Random \
|
||||
--hidden-import=telebot \
|
||||
--additional-hooks-dir=pyinstaller/hooks \
|
||||
--add-data "${CERT_PATH};certifi" \
|
||||
--add-data "StreamingCommunity${{ matrix.separator }}StreamingCommunity" \
|
||||
--name=${{ matrix.artifact_name }} test_run.py
|
||||
|
||||
@ -89,4 +93,4 @@ jobs:
|
||||
files: dist/${{ matrix.executable }}
|
||||
prerelease: true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -105,6 +105,9 @@ jobs:
|
||||
- name: Build executable with PyInstaller
|
||||
shell: bash
|
||||
run: |
|
||||
# Get certifi certificate path
|
||||
CERT_PATH=$(python -c "import certifi; print(certifi.where())")
|
||||
|
||||
pyinstaller --onefile --hidden-import=pycryptodomex --hidden-import=ua_generator \
|
||||
--hidden-import=qbittorrentapi --hidden-import=qbittorrent \
|
||||
--hidden-import=bs4 --hidden-import=httpx --hidden-import=rich --hidden-import=tqdm \
|
||||
@ -123,6 +126,7 @@ jobs:
|
||||
--hidden-import=Cryptodome.Random \
|
||||
--hidden-import=telebot \
|
||||
--additional-hooks-dir=pyinstaller/hooks \
|
||||
--add-data "${CERT_PATH};certifi" \
|
||||
--add-data "StreamingCommunity${{ matrix.separator }}StreamingCommunity" \
|
||||
--name=${{ matrix.artifact_name }} test_run.py
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user