diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 7e577d3..1f7eb2b 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -7,25 +7,30 @@ on: - main jobs: - Validate: + Build: runs-on: ubuntu-latest steps: - - name: Checkout repo - uses: actions/checkout@v3 + - name: Charger le dépôt + uses: actions/checkout@v4 - - name: Setup Python 3.11 - uses: actions/setup-python@v4 + - name: Installer Python + uses: actions/setup-python@v5 with: python-version: 3.11 - - name: install dependencies + - name: Installer Nuitka et MinGW run: | + sudo apt update + sudo apt install -y gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 python -m pip install --upgrade pip - pip install pyinstaller colorama + pip install nuitka colorama - - name: Build executable with pyinstaller + - name: Compiler l'executable run: | - pyinstaller --onefile controleur_de_gaz.py + nuitka \ + --mingw64 \ + --onefile \ + controleur_de_gaz.py - name: Archive executable run: | @@ -33,7 +38,7 @@ jobs: zip jeu_windows.zip ./controleur_de_gaz.exe - name: Upload Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: escape-game-windows-exe path: jeu_windows.zip diff --git a/.gitignore b/.gitignore index 7014d68..25a4e67 100644 --- a/.gitignore +++ b/.gitignore @@ -31,7 +31,8 @@ $RECYCLE.BIN/ .LSOverride # Icon must end with two \r -Icon +Icon + # Thumbnails ._* @@ -67,3 +68,10 @@ Temporary Items # .nfs files are created when an open file is removed but is still being accessed .nfs* +# binaries and compilation artifacts + +*.dist +*.bin +*.exe +*.build +*.onefile-build \ No newline at end of file