From c2fa090aeef78af7b3f552bb9f0ca3a016f67ee4 Mon Sep 17 00:00:00 2001 From: Fay Date: Mon, 30 Sep 2024 20:22:43 +0200 Subject: [PATCH] update yml --- .github/workflows/build_exe.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_exe.yml b/.github/workflows/build_exe.yml index 846cc1e..ca6525e 100644 --- a/.github/workflows/build_exe.yml +++ b/.github/workflows/build_exe.yml @@ -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