Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
unknownpersonog authored Jul 9, 2024
1 parent 62fdba5 commit a142887
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ jobs:

build-and-release-windows:
runs-on: windows-latest
needs: build-and-release-linux
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -81,28 +82,24 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install nuitka
pip install pyinstaller
pip install PyQt5
pip install google-auth-oauthlib
pip install google-auth
pip install google-api-python-client
pip install requests
# Add any other dependencies your project needs
- name: Set Nuitka Environment Variables
run: |
setx NUITKA_DOWNLOADS "1"
- name: Build with Nuitka
- name: Build with PyInstaller
run: |
nuitka --onefile --enable-plugin=pyqt5 main.py
pyinstaller --onefile main.py
- name: Upload Windows Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
upload_url: ${{ needs.build-and-release-linux.outputs.create_release.outputs.upload_url }}
asset_path: ./main.exe
upload_url: ${{ needs.build-and-release-linux.outputs['create_release.upload_url'] }}
asset_path: ./dist/main.exe
asset_name: main_windows.exe
asset_content_type: application/octet-stream

0 comments on commit a142887

Please sign in to comment.