fix: update Python dependency installation and enhance icon conversion process for improved compatibility

This commit is contained in:
Vxrtrauter
2026-02-11 02:43:35 +01:00
parent bfb3a4eeb3
commit 3b2d125849
+26 -8
View File
@@ -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: |