Package macOS app with Game Mode Info.plist #43
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG!43
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/43/head"
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?
@maple-quartz18 on GitHub · 2026-11-23 11:19 UTC · original
maple-quartz18:feature/macos-game-mode-plist→master· +28 −16 · 2 files · 4 commits · merged 2026-11-23 13:57 UTCSummary
SixNG.appbundle in release packaging.LSSupportsGameMode=true.GCSupportsControllerUserInteraction=truefor the existing Metal 4 game-controller path.Verification
packaging/macos/Info.plistand verified required keys..github/workflows/release.ymlas YAML.@holdmysocks on GitHub · 2026-11-23 12:18 UTC · original
Thanks, the Game Mode keys are a good addition. Two things before this can go in:
scripts/macos-app.shalready writes the app's Info.plist (including the icon,CFBundleIconFile). With this PR there would be two plists that can drift apart, and the one inpackaging/macos/Info.plisthas no icon. Could you addLSSupportsGameModeandGCSupportsControllerUserInteractionto the plist inscripts/macos-app.shinstead, and have the release workflow build the app with that script (or read the same plist), so there is one source?sixngandsixng-guitwice, once loose and once insideSixNG.app. Please keep only one copy, either the app (with the CLI inside it, as the script does) or the loose binaries.@maple-quartz18 on GitHub · 2026-11-23 12:27 UTC · original
Thanks for the review. I’ll consolidate this so
scripts/macos-app.shis the single source of the app bundle and Info.plist, add both Game Mode/controller keys there, update the release workflow to reuse that packaging path, and remove the duplicate loose macOS binaries from the archive.@maple-quartz18 on GitHub · 2026-11-23 12:30 UTC · original
Updated as requested:
scripts/macos-app.shis now the single Info.plist source; the app icon and bothLSSupportsGameMode/GCSupportsControllerUserInteractionkeys are kept there.--prebuiltmode, so it packages the binaries already built earlier in the job without rebuilding.SixNG.app, with bothsixngandsixng-guiunderContents/MacOS; the duplicate loose binaries are removed.Verified the workflow/script syntax, a simulated prebuilt packaging run, plist keys, ad-hoc signing, the no-duplicate layout, and the locked Metal 4 app build.
@maple-quartz18 on GitHub · 2026-11-23 12:33 UTC · original
Fixed in
5e0b28c:scripts/macos-app.shis now the sole Info.plist source.LSSupportsGameModeandGCSupportsControllerUserInteractionwhile preserving the icon and existing bundle metadata.--prebuilt.SixNG.app;sixngandsixng-guiare present only underContents/MacOS.Local verification passed for shell/YAML syntax, simulated prebuilt packaging, app signing, plist keys, duplicate-binary checks, and locked Metal 4 build. Linux CI is green; macOS and Windows are still running.
@maple-quartz18 on GitHub · 2026-11-23 12:45 UTC · original
Final verification update: all three CI jobs now pass — macOS, Linux, and Windows. The PR retains a single plist source and packages only
SixNG.appon macOS, with the CLI and GUI together insideContents/MacOS.@holdmysocks on GitHub · 2026-11-23 12:52 UTC · original
Thanks, this looks good: one plist source, the icon is kept, and there are no duplicate binaries.
One more request before merging. On macOS,
sixngmoves from the top of the archive toSixNG.app/Contents/MacOS/sixng. Tools that download a release and run<dir>/sixngwould then stop finding it on macOS, and the release notes say "unpack and runsixng". Could you add a relative symlink at the top of the macOS folder,ln -s SixNG.app/Contents/MacOS/sixng "dist/$dir/sixng", so the CLI stays at the same path on all three systems? The--versioncheck can then run./"dist/$dir/sixng"on every OS. tar keeps the symlink, so the path check can stay pointed at the real binaries in the app. Linux and Windows stay as they are.@holdmysocks on GitHub · 2026-11-23 13:40 UTC · original
I pushed
652b0a1to this branch, which adds the top-levelsixngsymlink on macOS (relative, pointing intoSixNG.app/Contents/MacOS/sixng). The--versioncheck now runs./dist/$dir/sixngon every system. Thanks for the rest of the work, this will go in once CI passes.@maple-quartz18 on GitHub · 2026-11-23 14:44 UTC · original
Thanks for adding the top-level
sixngsymlink and carrying the packaging change through to merge. That preserves the existing CLI path while keeping the macOS archive clean. Appreciate it!