Repository navigation
Mac app updates keep the right program and survive case-only renames; links out of a game still reach their file after a move - #377
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #361: the three edge cases @thehobbit85 reproduced on an Apple Silicon Mac in their review. #361 merged before they were fixed, so here they are, one commit each.
An update of an imported Mac app starts the program its new Info.plist names (
install.rs,lib.rs)EnginetoEngine2) left the game starting the deletedEngine.install::kept_exe. For a game imported as an app, the program the launcher found is dropped, so after the update it's found again from the new app'sCFBundleExecutable. That also covers an old program that stays on as a helper. A program the player picked stays while the update keeps it.An app update that only changes a file name's case goes in on a Mac (
install.rs)Artwork.txtin the old app andartwork.txtin the new one: on a Mac's usual drive (case-insensitive APFS) that's one file the update already replaces, so taking the old spelling away too made the update fail ("couldn't move … No such file"; rolled back, nothing lost).A link out of the game still reaches its file after a move to another drive (
manage.rs, Mac and Linux)asset.dat -> ../Shared/asset.dat) was recreated as it was, so at the new place it pointed at aSharedfolder that isn't there. Before Mac apps move, import and update whole; links survive a move to another drive #361 the move copied the file's data.../data/level.pakfrom a subfolder) stays relative and moves with it...is worked out from the game's real path, without asking the drive, so a link that points nowhere is copied too.Testing
cargo testand, at the last,node --test tests/*.test.cjs. Rust: 955, 957 and 960 passed, 0 failed; UI: 632 passed.Patch notes (Beta 67)
None of its own: these finish #361, whose line already says Mac apps update and move properly.
For the website (SDK guide): none.