From 3b2d125849a5402b01d3599fac0383b6abe2875f Mon Sep 17 00:00:00 2001 From: Vxrtrauter <101264710+Vxrtrauter@users.noreply.github.com> Date: Wed, 11 Feb 2026 02:43:35 +0100 Subject: [PATCH] fix: update Python dependency installation and enhance icon conversion process for improved compatibility --- .github/workflows/dev.yml | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index a1c3d4c..b76ea62 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -57,6 +57,7 @@ jobs: - name: Install Python dependencies run: | uv pip install -r requirements.txt + uv pip install Pillow env: UV_SYSTEM_PYTHON: 1 @@ -104,12 +105,9 @@ jobs: shell: bash run: | python -c " - from PySide6.QtGui import QImage - from PySide6.QtWidgets import QApplication - import sys - app = QApplication.instance() or QApplication(sys.argv) - img = QImage('core/interface/assets/logo.png') - img.save('app_icon.ico') + from PIL import Image + img = Image.open('core/interface/assets/logo.png') + img.save('app_icon.ico', format='ICO', sizes=[(256,256),(128,128),(64,64),(48,48),(32,32),(16,16)]) print('Icon converted successfully') " @@ -135,8 +133,8 @@ jobs: --output-filename=${{ env.APP_NAME }}.exe \ main.py - - name: Build with PyInstaller (Unix) - if: runner.os != 'Windows' + - name: Build with PyInstaller (Linux) + if: runner.os == 'Linux' shell: bash run: | pyinstaller --onefile --windowed \ @@ -155,6 +153,26 @@ jobs: --name ${{ env.APP_NAME }} \ main.py + - name: Build with PyInstaller (macOS) + if: runner.os == 'macOS' + shell: bash + run: | + pyinstaller --onefile \ + --add-data "build_info.json:." \ + --add-data "build_info.json:core" \ + --add-data "build_info.json:core/interface" \ + --add-data "core/interface/assets:core/interface/assets" \ + --icon "core/interface/assets/logo.png" \ + --exclude-module PyQt6 \ + --exclude-module PyQt5 \ + --hidden-import=backports.tarfile \ + --hidden-import=backports \ + --hidden-import=jaraco.context \ + --hidden-import=jaraco.text \ + --hidden-import=jaraco.functools \ + --name ${{ env.APP_NAME }} \ + main.py + - name: Rename artifact shell: bash run: |