diff --git a/.github/workflows/build-dev.yml b/.github/workflows/build-dev.yml index 6e9f25c..68c92db 100644 --- a/.github/workflows/build-dev.yml +++ b/.github/workflows/build-dev.yml @@ -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 }} \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c15ccf3..b6b3473 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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