From 9ae940585a08822ee93d924e3281f8b0e3c2c222 Mon Sep 17 00:00:00 2001 From: rattatwinko Date: Wed, 28 May 2025 15:02:58 +0200 Subject: [PATCH] my cock is very small --- .gitea/workflows/run-mucapy.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/run-mucapy.yml b/.gitea/workflows/run-mucapy.yml index c393781..2585420 100644 --- a/.gitea/workflows/run-mucapy.yml +++ b/.gitea/workflows/run-mucapy.yml @@ -1,4 +1,4 @@ -name: Run MuCaPy +name: Build MuCaPy Executable on: push: @@ -7,7 +7,7 @@ on: branches: [ main ] jobs: - build-and-run: + build-and-package: runs-on: ubuntu-latest steps: - name: Checkout repository @@ -23,11 +23,14 @@ jobs: python -m pip install --upgrade pip pip install -r requirements.txt - - name: Install Xvfb and libgl (for PyQt5 and OpenCV GUI) - run: | - sudo apt-get update - sudo apt-get install -y xvfb libgl1-mesa-glx + - name: Install PyInstaller + run: pip install pyinstaller - - name: Run MuCaPy main.py with Xvfb - run: | - xvfb-run --auto-servernum --server-args='-screen 0 1920x1080x24' python mucapy/main.py \ No newline at end of file + - name: Build executable with PyInstaller + run: pyinstaller --onefile --windowed mucapy/main.py + + - name: Upload executable artifact + uses: actions/upload-artifact@v3 + with: + name: mucapy-executable + path: dist/ \ No newline at end of file