Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Build nuitka from source as opposed to using pypi #118

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 Nutika
uses: actions/checkout@v3
with:
repository: Nuitka/Nuitka
path: nutika
fetch-depth: '0'
- name: Checkout Nutika on latest tag and install
working-directory: ./nutika
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
Expand Down