ci(CICD): add pyinstaller build for binary

This commit is contained in:
Lucas Vivo committed 2026-11-20 15:58:04 +01:00
1 parent 060f429282
commit 07da497eed
1 file changed
+22 -5
+22 -5
View File
@@ -93,17 +93,34 @@ jobs:
working-directory: wallpaper_changer
run: |
python -m pip install --upgrade pip
python -m pip install build
python -m pip install pyinstaller build
python -m pip install ../serverlibrary
python -m pip install .
- name: Build Python package
- name: Build executable
working-directory: wallpaper_changer
run: |
python -m build
python -m PyInstaller \
--clean \
--onefile \
--paths src \
--name wallpaper_changer \
main.py
- name: Build wheel
working-directory: wallpaper_changer
run: |
python -m build --wheel
- name: Verify build outputs
run: |
ls -lh wallpaper_changer/dist/
test -f wallpaper_changer/dist/wallpaper_changer
ls wallpaper_changer/dist/*.whl
- name: Upload build artifacts
uses: actions/upload-artifact@v3
uses: https://github.com/christopherHX/gitea-upload-artifact@v4
with:
name: wallpaper-changer-dist
name: wallpaper-changer-build
path: wallpaper_changer/dist/
if-no-files-found: error