Install requests, Pillow, youtube-search-python, and ttkbootstrap #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Windows EXE | |
| on: | |
| push: | |
| branches: [ windows-build ] | |
| pull_request: | |
| jobs: | |
| build-windows: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pyinstaller | |
| pip install requests Pillow youtube-search-python ttkbootstrap | |
| - name: Build EXE | |
| run: | | |
| pyinstaller --onefile main.py | |
| # Als je een icoon wilt, kan je hier toevoegen: | |
| # pyinstaller --onefile --icon=icon.ico main.py | |
| - name: Upload EXE als artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: windows-build | |
| path: dist/main.exe |