Skip to content

Commit

Permalink
update yml
Browse files Browse the repository at this point in the history
  • Loading branch information
faytor committed Sep 30, 2024
1 parent c919a52 commit c2fa090
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build_exe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@ jobs:
with:
python-version: '3.x'

- name: Install PyInstaller
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller
pip install pyinstaller pillow
- name: Convert PNG to ICO
run: |
python -c "from PIL import Image; img = Image.open('img/icon.png'); img.save('icon.ico')"
- name: Build executable
run: pyinstaller --name=dbcompare --onefile --windowed --add-data "img/icon.png;." --icon="img/icon.png" main.py
run: pyinstaller --name=dbcompare --onefile --windowed --add-data "img/icon.png;img" --icon="icon.ico" main.py

- name: Upload artifact
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit c2fa090

Please sign in to comment.