From 6acda5fcb28afcb71adfc38ac6742d263d312576 Mon Sep 17 00:00:00 2001 From: cassowaree Date: Sat, 4 Jan 2025 12:33:17 -0800 Subject: [PATCH] compile: fix nuitka GitHub action --onefile option deprecation --- .github/workflows/compile.yml | 3 ++- README.md | 2 +- SideJITServer/launch.py | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index b6011f1..f7be560 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -49,6 +49,7 @@ jobs: with: nuitka-version: main script-name: SideJITServer/launch.py + mode: onefile - name: Upload Compilation Report if: always() # run even if the compile failed @@ -64,7 +65,7 @@ jobs: path: | build/*.exe build/*.bin - build/*.app/**/* + # build/*.app/**/* - name: Check if executable runs (.exe) if: ${{ runner.os == 'Windows' }} diff --git a/README.md b/README.md index 5933002..f28bae0 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ SideJITServer --help ``` ### Option 2: Direct download (if available) -Go to the latest [GitHub Release](https://github.com/nythepegasus/SideJITServer/releases/latest) and check if there are executable downloads, such as `SideJITServer-windows-x86_64.exe`, depending on your OS and your architecture. +Go to the latest [GitHub Release](https://github.com/nythepegasus/SideJITServer/releases/latest) and check if there are executable downloads, such as `SideJITServer-windows-x86_64.exe`, depending on your OS and your architecture. If there is no attached executable, you might find one in the [GitHub Actions](https://github.com/nythepegasus/SideJITServer/actions/workflows/compile.yml?query=is%3Asuccess) if a recent build worked and did not expire. Download the correct executable, and run it as Administrator from your terminal or Powershell following the directions below. If you are on Mac or Linux, you must first run `chmod +x ./(your downloaded .bin file)` before executing the file with sudo. diff --git a/SideJITServer/launch.py b/SideJITServer/launch.py index 94b57df..162edd1 100644 --- a/SideJITServer/launch.py +++ b/SideJITServer/launch.py @@ -2,10 +2,10 @@ # Make executable standalone # nuitka-project-if: {OS} in ("Windows", "Linux", "Darwin", "FreeBSD"): -# nuitka-project: --onefile +# nuitka-project: --mode=onefile # nuitka-project: --onefile-tempdir-spec="{CACHE_DIR}/SideJITServer" # nuitka-project-else: -# nuitka-project: --standalone +# nuitka-project: --mode=standalone # nuitka-project-if: {OS} == "Windows": # nuitka-project: --output-filename=SideJITServer-windows-x86_64.exe