Skip to content

Zip files "uploaded" to the host computer don't expand resource forks properly? #358

Open
@simX

Description

I'm not sure if this is actually a bug or not with Infinite Mac. I'm using the System 7.5.3 emulator. It seems in at least one case, I'm trying to "upload" a file to The Outside World (which saves it to the host computer), and on macOS, the resulting zip file does not expand resource forks as I would expect. Steps to reproduce:

  1. Launch the System 7.5.3 emulator on Infinite Mac: https://infinitemac.org/1996/System%207.5.3
  2. Click the "Macintosh Garden" tab and search for "Dinopark Tycoon". Click "dinopark-tycoon-01.sit" to load it into the "Downloads" folder of "The Outside World", then double-click it to Unstuff it.
  3. Launch DinoPark Tycoon and play a game. Create a save file and save it somewhere.
  4. Drag your DinoPark Tycoon saved game file to the "Uploads" folder of "The Outside World". Shortly, a zip file should start saving to your host Mac.
  5. On macOS Sonoma, 14.7.1 (23H222), double click the .zip file to uncompress it. Note that this creates a zero-length file, with no resource fork at the sub-path ../namedfork/rsrc
  6. Open the .zip file from Step 4 with a zip file inspector application (Pacifist is a good option). Note that the zip file does actually contain what seems to be a resource fork inside the ".rsrc" folder in the zip file. However, the native macOS Compression Utility does not seem to recognize this or properly uncompress it.
  7. Back on Infinite Mac, install Stuffit Deluxe 4.5 from Macintosh Garden ("STUFFITDLX45.SIT"), then compress the DinoPark Tycoon saved file with Stuffit Deluxe first, then copy it to the "Uploads" folder. When you uncompress with the native macOS Compression Utility on the host Mac, and then uncompress the .sit file with "The Unarchiver" (https://macpaw.com/the-unarchiver), the resource fork is kept intact in the saved game file on the modern Mac. You can use cat /Users/dino/DinoPark Saved File/..namedfork/rsrc to view the resource fork correctly in the Terminal.

Again, not sure if this is actually a bug.

Possible resolutions:

  1. Ideally, the .zip files generated when saving a file to the host computer should be natively understood by modern macOS's Compression Utility.

  2. The sticky that mentions how to upload files to the host computer doesn't mention any special handling for files with resource forks from the emulated Mac. Maybe all that's needed is a note here saying to preserve the .zip file, rather than expanding it and preserving that file. I can see a (possibly rare) instance where someone uncompresses the .zip file and then saves that somewhere, deleting the .zip file and expecting the expanded file to preserve all the data. Not sure how common this scenario might be.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions