mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-05 02:55:25 +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
|
- name: Build executable with PyInstaller
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
# Get certifi certificate path
|
||||||
|
CERT_PATH=$(python -c "import certifi; print(certifi.where())")
|
||||||
|
|
||||||
pyinstaller --onefile --hidden-import=pycryptodomex --hidden-import=ua_generator \
|
pyinstaller --onefile --hidden-import=pycryptodomex --hidden-import=ua_generator \
|
||||||
--hidden-import=qbittorrentapi --hidden-import=qbittorrent \
|
--hidden-import=qbittorrentapi --hidden-import=qbittorrent \
|
||||||
--hidden-import=bs4 --hidden-import=httpx --hidden-import=rich --hidden-import=tqdm \
|
--hidden-import=bs4 --hidden-import=httpx --hidden-import=rich --hidden-import=tqdm \
|
||||||
@ -79,6 +82,7 @@ jobs:
|
|||||||
--hidden-import=Cryptodome.Random \
|
--hidden-import=Cryptodome.Random \
|
||||||
--hidden-import=telebot \
|
--hidden-import=telebot \
|
||||||
--additional-hooks-dir=pyinstaller/hooks \
|
--additional-hooks-dir=pyinstaller/hooks \
|
||||||
|
--add-data "${CERT_PATH};certifi" \
|
||||||
--add-data "StreamingCommunity${{ matrix.separator }}StreamingCommunity" \
|
--add-data "StreamingCommunity${{ matrix.separator }}StreamingCommunity" \
|
||||||
--name=${{ matrix.artifact_name }} test_run.py
|
--name=${{ matrix.artifact_name }} test_run.py
|
||||||
|
|
||||||
@ -89,4 +93,4 @@ jobs:
|
|||||||
files: dist/${{ matrix.executable }}
|
files: dist/${{ matrix.executable }}
|
||||||
prerelease: true
|
prerelease: true
|
||||||
env:
|
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
|
- name: Build executable with PyInstaller
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
# Get certifi certificate path
|
||||||
|
CERT_PATH=$(python -c "import certifi; print(certifi.where())")
|
||||||
|
|
||||||
pyinstaller --onefile --hidden-import=pycryptodomex --hidden-import=ua_generator \
|
pyinstaller --onefile --hidden-import=pycryptodomex --hidden-import=ua_generator \
|
||||||
--hidden-import=qbittorrentapi --hidden-import=qbittorrent \
|
--hidden-import=qbittorrentapi --hidden-import=qbittorrent \
|
||||||
--hidden-import=bs4 --hidden-import=httpx --hidden-import=rich --hidden-import=tqdm \
|
--hidden-import=bs4 --hidden-import=httpx --hidden-import=rich --hidden-import=tqdm \
|
||||||
@ -123,6 +126,7 @@ jobs:
|
|||||||
--hidden-import=Cryptodome.Random \
|
--hidden-import=Cryptodome.Random \
|
||||||
--hidden-import=telebot \
|
--hidden-import=telebot \
|
||||||
--additional-hooks-dir=pyinstaller/hooks \
|
--additional-hooks-dir=pyinstaller/hooks \
|
||||||
|
--add-data "${CERT_PATH};certifi" \
|
||||||
--add-data "StreamingCommunity${{ matrix.separator }}StreamingCommunity" \
|
--add-data "StreamingCommunity${{ matrix.separator }}StreamingCommunity" \
|
||||||
--name=${{ matrix.artifact_name }} test_run.py
|
--name=${{ matrix.artifact_name }} test_run.py
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user