Repository navigation
Never take a Mac's ._ metadata files for programs - #589
Open
thehobbit85 wants to merge 1 commit into
Open
thehobbit85 wants to merge 1 commit into
thehobbit85 wants to merge 1 commit into
Conversation
A Mac writes a ._ file beside each file on a drive formatted for Windows, and into archives it packs. elripalda#401 kept them out of the native build check only. They could still be picked as the game's setup, listed as programs by name, or make an installed AppImage look like one of two. They're now never a program, a setup or an AppImage.
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.
What this changes
Follow-up to #401, for the rest of #390.
A Mac writes a
._metadata file beside each file it puts on a drive formatted for Windows (exFAT, FAT32), and bsdtar adds them to archives packed on a Mac. #401 kept them out of the native build check only. Elsewhere, the launcher still took them by name:find_setupsorts names, so._Game-setup.execame beforeGame-setup.exeand was picked as the game's setup.is_programaccepts a.exeon Windows, and a.AppImageor.x86_64on Linux, by name alone, so a._file counted as a program.installed_imagegives up when it sees two AppImages, so a._Game.AppImagebesideGame.AppImagestopped the launcher reading the game's built-in manifest.A file whose name starts with
._is now never a program, a setup or an installed AppImage.Limits: the
._files are still unpacked from archives as before; they're only never picked. The Linux install failure when unpacking a._Game.AppImageis left to #409, which keeps a file that isn't a real AppImage as a plain file.How you tested it
Run on macOS against
eaf7ca2, with synthetic._files (the AppleDouble header and a few bytes).Four new tests, each failing on
mainbefore the change: the setup beside a._copy is the real one; a._game.x86_64isn't a Linux program; a._Game.exeisn't a Windows program; a._Game.AppImagebeside the real one doesn't hide it.Rust: 1,219 passed, 1 ignored. UI: 1,019 passed, 11 skipped.
git diff --checkclean.npm testpassesnode --test tests/*.test.cjspassesTried it in the launcher (
npm run dev)Checklist
recomplauncher.json