revert add Ico
This commit is contained in:
2025-09-16 17:43:28 +00:00
parent 39cfe519c6
commit 10ae32812f
2 changed files with 12 additions and 5 deletions

View File

@@ -13,14 +13,21 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Ensure tools (ImageMagick for .ico)
run: |
sudo apt-get update
sudo apt-get install -y imagemagick
- name: Prepare icon (optional)
run: |
if [ -f "SeaLoader.png" ]; then
convert SeaLoader.png -resize 256x256 SeaLoader.ico || true
fi
- name: Build EXE with PyInstaller (Windows target via Docker)
run: |
docker run --rm -v "$PWD":/src cdrx/pyinstaller-windows:python3 \
"/bin/sh -lc 'set -e; \
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi; \
ADD_FLAG=; \
if [ -f SeaLoader.png ]; then ADD_FLAG=--add-data\ '"'"'SeaLoader.png;.'"'"'; fi; \
pyinstaller --noconfirm --onefile --windowed sealoader_gui.py --name SeaLoader $ADD_FLAG --icon SeaLoader.ico'"
"/bin/sh -lc 'set -e; if [ -f requirements.txt ]; then pip install -r requirements.txt; fi; pyinstaller --noconfirm --onefile --windowed sealoader_gui.py --name SeaLoader --add-data ""SeaLoader.png:."" $( [ -f SeaLoader.ico ] && echo --icon SeaLoader.ico )'"
- name: Prepare artifact
run: |

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB