Repository navigation
Mac apps move, import and update whole; links survive a move to another drive - #361
Conversation
|
@Xarishark I reviewed and tested this on my Apple Silicon Mac (arm64, macOS 26.6, build 25G5028f), at dffe229. The existing suites and native app build pass, and the main fixes work in the native smoke tests. I reproduced three edge cases that I think we should address before merging.
Mac validation completed:
The native checks used disposable, ad-hoc-signed Mach-O app/framework fixtures and the launcher's Rust functions, with actual execution of the fixture apps. This was not a GUI end-to-end or real-game gameplay test. ZIP fixtures used |
|
@thehobbit85 thanks for testing this on a real Mac; all three reproduced in the code. This PR merged before they were fixed, so the fixes are in #377, one commit each:
Each has tests. The case-only test does its real check on CI's macos-15 runner. If your native harness is handy, a run of it against #377 would be very welcome. |
Four Mac fixes that were written as a follow-up to #27 (in thehobbit85#1) but never landed: #27 merged before them, and that PR closed when its branch was deleted. Ported onto current main, which has changed a lot since (updates now go through
swap.rs, the menus moved).A game moved to another drive keeps its links as links (
manage.rs, Mac and Linux)/var/homeon Bazzite) now points at the new place. Any other link is copied as it is, as a move on the same drive keeps it.A Mac app picked when importing a game is the game (
adopt.rs,install.rs, Mac only)My Game.appas the folder no longer goes into itsContentsfolder, and the app's declared program (CFBundleExecutable) starts, never a helper inside it.Engine. A folder that holds only the app stays the game's folder.start.program("Game.app"), and a profile that names only Windows/Linux programs no longer rules out the Mac build.An update of a game imported as a Mac app replaces the app (
install.rs,lib.rs, Mac only)Game.app/Game.app. Every old file ofContentsthe new app doesn't ship is taken away (a signed app must hold exactly what it was signed with);{data}besideContentsstays.No Add to desktop on a Mac (
app.js,tv.js).desktopfile, which a Mac ignores. Favorites stays in Add To. Steam items were already hidden on a Mac (Steam isn't looked for there).Testing
cargo test(914 passed) andnode --test tests/*.test.cjs(560 passed). The new Mac import/update tests run there too (they'recfg(unix)and pass"macos")./tmp) to btrfs (home), with the launcher's ownmove_dir, of an unpacked AppImage plus a folder link, a full-path link and a link outside it: moved, links intact, the full-path link re-pointed, the program starts from the new place. The same move with main's code fails with "Is a directory" and the game stays where it was.Patch notes (Beta 67)
For
docs/PATCH-NOTES-0.90-beta-67.md, under Everything else:For the website (SDK guide): none.