fix(build): package scripts/ in the Linux AppImage, so NVIDIA DLSS can be fetched #1748
No reviewers
Labels
No labels
accessibility
autorelease: pending
autorelease: tagged
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
question
testing wanted
wontfix
No milestone
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Hookshot!1748
Loading…
Reference in a new issue
No description provided.
Delete branch "fix-linux-appimage-missing-ngx-scripts"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What's broken
The Linux AppImage never carries
scripts/, sonx2/make_game.py'sngx_script()(
scripts/ngx_sdk.py, loaded by path atHOOKSHOT_NGX_SDK/--fetch-ngx-sdktime)can't be found. NVIDIA DLSS can't be built from any released Linux AppImage, only
from a source checkout —
scripts/linux/ngx-sdk.shand the README's Linux DLSSsection are unreachable from a release.
The copy block's own comment already says it carries "the sources the player's
build compiles, and the scripts" —
scriptswas just left out of thecp -aline itself.
Reproduced directly against a built release AppImage:
Fix
One line in
scripts/linux/appimage.sh:Test
tests/test_appimage_scripts.py, in the same style astest_appimage_licenses.py:runs the real copy block of
appimage.shinto a temp folder and checksscripts/ngx_sdk.pyandscripts/linux/ngx-sdk.shland byte-identical to thesource. Confirmed it fails on the original line and passes with the fix.
Looks good. The one-line fix is right: the comment above the copy already says scripts belong there, and nx2/make_game.py loads scripts/ngx_sdk.py by path. The test runs the real copy block and compares the files byte for byte, and it skips itself off Linux, so it is fine for Windows runners.
Nit: the test only checks two files. That's enough for this bug, so I wouldn't change it.