Skip to content

Commit

Permalink
compile: fix nuitka GitHub action --onefile option deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
cassowaree committed Jan 4, 2025
1 parent 13f1d12 commit 6acda5f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -64,7 +65,7 @@ jobs:
path: |
build/*.exe
build/*.bin
build/*.app/**/*
# build/*.app/**/*
- name: Check if executable runs (.exe)
if: ${{ runner.os == 'Windows' }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions SideJITServer/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6acda5f

Please sign in to comment.