From 408acfee2dcee78deda2f58eba1fb9a1d5a91375 Mon Sep 17 00:00:00 2001 From: Lucas Vivo Date: Tue, 17 Nov 2026 12:18:13 +0100 Subject: [PATCH] build(CICD): add pyinstaller build for binary --- .gitea/workflows/ci.yaml | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 28aee4f..cf8c9af 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -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