Update pyinstaller.yaml #10
This file contains 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 with PyInstaller | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest, ubuntu-latest] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pyinstaller | |
- name: Ensure assets directory exists | |
run: mkdir -p assets | |
- name: Copy icon file | |
run: cp app/resources/icon.ico assets/icon.ico | |
- name: Build with PyInstaller | |
run: | | |
pyinstaller --onefile --name Dandilion --add-data "app:app" --icon=assets/icon.ico main.py | |
- name: List dist directory contents | |
run: ls -R dist | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Dandilion-${{ matrix.os }} | |
path: dist/Dandilion |