Skip to content

Update pyinstaller.yaml #10

Update pyinstaller.yaml

Update pyinstaller.yaml #10

Workflow file for this run

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