Skip to content

fixed creashes

fixed creashes #44

Workflow file for this run

name: Nuitka Build
on:
push:
branches:
- main
workflow_dispatch: # manual trigger bc why not?
permissions:
contents: write
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: 'pip' # cache pips because every second matters
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if (Test-Path requirements.txt) { pip install -r requirements.txt }
pip install nuitka zstandard
- name: Nuitka Cache
uses: actions/cache@v4
with:
path: NuitkaCache
key: ${{ runner.os }}-nuitka-${{ hashFiles('**/*.py', 'requirements.txt') }}
restore-keys: |
${{ runner.os }}-nuitka-
- name: Build with Nuitka
env:
NUITKA_CACHE_DIR: ${{ github.workspace }}/NuitkaCache
run: |
python -m nuitka --onefile --standalone `
--enable-plugin=pyqt6 `
--include-package-data=minecraft_launcher_lib `
--windows-console-mode=disable `
--assume-yes-for-downloads `
--output-dir=dist `
--output-filename=PyMCL.exe `
main.py
- name: Publish to Release
uses: softprops/action-gh-release@v2
if: success()
with:
files: dist/PyMCL.exe
tag_name: pymcl-autobuild-${{ github.sha }}
name: PyMCL Auto Build
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}