@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user