Package macOS app with Game Mode Info.plist #43

Manually merged
github merged 4 commits from gh-pr/43/head into gh-pr/43/base 2026-11-26 20:05:19 +00:00
Owner

@⁠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 UTC

Summary

  • Create a macOS SixNG.app bundle in release packaging.
  • Add LSSupportsGameMode=true.
  • Add GCSupportsControllerUserInteraction=true for the existing Metal 4 game-controller path.
  • Set the app bundle executable and version metadata from the release tag.

Verification

  • Parsed packaging/macos/Info.plist and verified required keys.
  • Parsed .github/workflows/release.yml as YAML.
**@⁠maple-quartz18** on GitHub · 2026-11-23 11:19 UTC · [original](https://github.com/holdmysocks/SixNG/pull/43) `maple-quartz18:feature/macos-game-mode-plist` → `master` · +28 −16 · 2 files · 4 commits · merged 2026-11-23 13:57 UTC ## Summary - Create a macOS `SixNG.app` bundle in release packaging. - Add `LSSupportsGameMode=true`. - Add `GCSupportsControllerUserInteraction=true` for the existing Metal 4 game-controller path. - Set the app bundle executable and version metadata from the release tag. ## Verification - Parsed `packaging/macos/Info.plist` and verified required keys. - Parsed `.github/workflows/release.yml` as YAML.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:05:17 +00:00
github manually merged commit 652b0a1234 into gh-pr/43/base 2026-11-26 20:05:19 +00:00
Author
Owner

@⁠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:

  1. scripts/macos-app.sh already 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 in packaging/macos/Info.plist has no icon. Could you add LSSupportsGameMode and GCSupportsControllerUserInteraction to the plist in scripts/macos-app.sh instead, and have the release workflow build the app with that script (or read the same plist), so there is one source?
  2. The macOS tar.gz would then carry sixng and sixng-gui twice, once loose and once inside SixNG.app. Please keep only one copy, either the app (with the CLI inside it, as the script does) or the loose binaries.
**@⁠holdmysocks** on GitHub · 2026-11-23 12:18 UTC · [original](https://github.com/holdmysocks/SixNG/pull/43#issuecomment-7100850059) Thanks, the Game Mode keys are a good addition. Two things before this can go in: 1. `scripts/macos-app.sh` already 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 in `packaging/macos/Info.plist` has no icon. Could you add `LSSupportsGameMode` and `GCSupportsControllerUserInteraction` to the plist in `scripts/macos-app.sh` instead, and have the release workflow build the app with that script (or read the same plist), so there is one source? 2. The macOS tar.gz would then carry `sixng` and `sixng-gui` twice, once loose and once inside `SixNG.app`. Please keep only one copy, either the app (with the CLI inside it, as the script does) or the loose binaries.
Author
Owner

@⁠maple-quartz18 on GitHub · 2026-11-23 12:27 UTC · original

Thanks for the review. I’ll consolidate this so scripts/macos-app.sh is 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:27 UTC · [original](https://github.com/holdmysocks/SixNG/pull/43#issuecomment-7101100564) Thanks for the review. I’ll consolidate this so `scripts/macos-app.sh` is 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.
Author
Owner

@⁠maple-quartz18 on GitHub · 2026-11-23 12:30 UTC · original

Updated as requested:

  • scripts/macos-app.sh is now the single Info.plist source; the app icon and both LSSupportsGameMode / GCSupportsControllerUserInteraction keys are kept there.
  • The release workflow reuses the script with a new --prebuilt mode, so it packages the binaries already built earlier in the job without rebuilding.
  • The macOS archive now contains only SixNG.app, with both sixng and sixng-gui under Contents/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:30 UTC · [original](https://github.com/holdmysocks/SixNG/pull/43#issuecomment-7101178749) Updated as requested: - `scripts/macos-app.sh` is now the single Info.plist source; the app icon and both `LSSupportsGameMode` / `GCSupportsControllerUserInteraction` keys are kept there. - The release workflow reuses the script with a new `--prebuilt` mode, so it packages the binaries already built earlier in the job without rebuilding. - The macOS archive now contains only `SixNG.app`, with both `sixng` and `sixng-gui` under `Contents/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.
Author
Owner

@⁠maple-quartz18 on GitHub · 2026-11-23 12:33 UTC · original

Fixed in 5e0b28c:

  • scripts/macos-app.sh is now the sole Info.plist source.
  • Added LSSupportsGameMode and GCSupportsControllerUserInteraction while preserving the icon and existing bundle metadata.
  • Release packaging reuses the script through --prebuilt.
  • macOS archives now contain only SixNG.app; sixng and sixng-gui are present only under Contents/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:33 UTC · [original](https://github.com/holdmysocks/SixNG/pull/43#issuecomment-7101282688) Fixed in `5e0b28c`: - `scripts/macos-app.sh` is now the sole Info.plist source. - Added `LSSupportsGameMode` and `GCSupportsControllerUserInteraction` while preserving the icon and existing bundle metadata. - Release packaging reuses the script through `--prebuilt`. - macOS archives now contain only `SixNG.app`; `sixng` and `sixng-gui` are present only under `Contents/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.
Author
Owner

@⁠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.app on macOS, with the CLI and GUI together inside Contents/MacOS.

**@⁠maple-quartz18** on GitHub · 2026-11-23 12:45 UTC · [original](https://github.com/holdmysocks/SixNG/pull/43#issuecomment-7101593693) Final verification update: all three CI jobs now pass — macOS, Linux, and Windows. The PR retains a single plist source and packages only `SixNG.app` on macOS, with the CLI and GUI together inside `Contents/MacOS`.
Author
Owner

@⁠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, sixng moves from the top of the archive to SixNG.app/Contents/MacOS/sixng. Tools that download a release and run <dir>/sixng would then stop finding it on macOS, and the release notes say "unpack and run sixng". 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 --version check 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 12:52 UTC · [original](https://github.com/holdmysocks/SixNG/pull/43#issuecomment-7101751791) Thanks, this looks good: one plist source, the icon is kept, and there are no duplicate binaries. One more request before merging. On macOS, `sixng` moves from the top of the archive to `SixNG.app/Contents/MacOS/sixng`. Tools that download a release and run `<dir>/sixng` would then stop finding it on macOS, and the release notes say "unpack and run `sixng`". 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 `--version` check 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.
Author
Owner

@⁠holdmysocks on GitHub · 2026-11-23 13:40 UTC · original

I pushed 652b0a1 to this branch, which adds the top-level sixng symlink on macOS (relative, pointing into SixNG.app/Contents/MacOS/sixng). The --version check now runs ./dist/$dir/sixng on every system. Thanks for the rest of the work, this will go in once CI passes.

**@⁠holdmysocks** on GitHub · 2026-11-23 13:40 UTC · [original](https://github.com/holdmysocks/SixNG/pull/43#issuecomment-7102865356) I pushed 652b0a1 to this branch, which adds the top-level `sixng` symlink on macOS (relative, pointing into `SixNG.app/Contents/MacOS/sixng`). The `--version` check now runs `./dist/$dir/sixng` on every system. Thanks for the rest of the work, this will go in once CI passes.
Author
Owner

@⁠maple-quartz18 on GitHub · 2026-11-23 14:44 UTC · original

Thanks for adding the top-level sixng symlink and carrying the packaging change through to merge. That preserves the existing CLI path while keeping the macOS archive clean. Appreciate it!

**@⁠maple-quartz18** on GitHub · 2026-11-23 14:44 UTC · [original](https://github.com/holdmysocks/SixNG/pull/43#issuecomment-7104462385) Thanks for adding the top-level `sixng` symlink and carrying the packaging change through to merge. That preserves the existing CLI path while keeping the macOS archive clean. Appreciate it!
This discussion has been locked. Commenting is limited to contributors.
No description provided.