diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 310b430..bb90fe9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -118,13 +118,24 @@ jobs: RAW_BRANCH=${{ github.ref_name || github.head_ref }} BRANCH=${RAW_BRANCH//\//-} echo "BRANCH=$BRANCH" >> $GITHUB_ENV - - name: Install dependencies and build + - name: Checkout Nuitka + uses: actions/checkout@v3 + with: + repository: Nuitka/Nuitka + path: Nuitka + fetch-depth: '0' + - name: Checkout Nuitka on latest tag and install + working-directory: ./Nuitka + run: | + git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) + python3 -m pip install -e . + - name: Install other dependencies and build run: | # required to use `python3` here as otherwise the venv is created with python 3.9 python3 -m pip install pipx python3 -m pipx run poetry install --no-interaction --with compile -E gui ./.venv/Scripts/activate.ps1 - # pip install nuitka minecraft_launcher_lib PySide6 click tomli darkdetect + # pip install minecraft_launcher_lib PySide6 click tomli darkdetect echo '__version__ = "${{ env.BRANCH }}+${{ steps.short-sha.outputs.sha }}"' | Out-File vanilla_installer/__init__.py pyside6-rcc vanilla_installer/assets/fonts.qrc -o vanilla_installer/fonts.py python -m nuitka --standalone --onefile --windows-icon-from-ico=media/icon.ico --output-dir=build --include-package=minecraft_launcher_lib,PySide6,click,tomli,darkdetect -o "Vanilla Installer-GUI ${{ env.BRANCH }}+${{ steps.short-sha.outputs.sha }}.exe" --enable-plugin=pyside6 --include-data-dir=vanilla_installer/assets=assets/ --disable-console --nofollow-import-to=PySide6.examples vanilla_installer/gui.py --assume-yes-for-downloads