Repository navigation
Conversation
scripts/mac_dmg.py copies a Mac app into a .dmg that opens with the game's icon on the left, a symlink to /Applications on the right, an arrow between the two, the game's name on the background and the game's own icon on the volume. The app bundle is not changed: it is copied into the image, which is built read-write (the Finder writes the window's layout and the volume's icon into it) and then converted to a compressed read-only image, so it opens the same way on every Mac. The layout is written in two passes: the Finder places the two icons and reads back where it put them, and the background is drawn in exactly those coordinates, so the arrow lands between the icons on every Mac. Without the permission to control the Finder (or with --no-layout) the image is built without a layout. Co-Authored-By: Claude Code <noreply@anthropic.com>
|
Nice work on the Finder layout! Out of curiosity, what's the use case you have in mind? For my own builds I just move the One concern worth raising before this lands: a |
The game sizes its scenes by the operation mode and the Switch 2 graphics scale (one function of nro0 1.1.1); its smallest Horizon answer is handheld scale 2, 1280x720. graphics_scale rows give Original / 1440p (console scale 1, the game's 2048x1152 start, still the default through android_window original), 1080p (handheld 0) and 720p (handheld 2). 540p is handheld scale 2 plus DM_GRAPHICS_SIZE=960x540: an observation gate where the size function's paths join writes the smaller size, never above the game's own pick. The launcher passes DM_GRAPHICS_SIZE for a graphics_scale row whose scale and mode a larger row also has. The in-game panel sets the scale, mode and size in one host call (nxhost_graphics_set) with one notification 300, so 540p -> 1080p does not pass through 720p. nro0's build ID goes in a new nro_build key: in the build row, the dump check looked for nro0 in the ExeFS. Refs seedds#302, seedds#307 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Lh8PXU5UbYtcjyspYPzhV7
… and 540p (seedds#302, seedds#307)' (seedds#310) from cr1stian/BananaNative:mtf-resolution into android Reviewed-on: https://git.eden-emu.dev/moceure/BananaNative/pulls/310
|
Thanks for putting together the Finder-layout We're closing this PR because the existing |
Packs a Mac app into a disk image (a
.dmg) that opens with a ready-made window: the game on the left, a symlink to/Applicationson the right, an arrow between the two, the game's name on the background and the game's own icon on the volume.The app bundle is not changed: it is copied into the image. The image is built read-write (the Finder writes the window's layout and the volume's icon into it) and then converted to a compressed read-only image, so the finished
.dmgopens with the same window on every Mac. Dragging the app to/Applicationscopies it there; nothing is installed.How the layout is written: the Finder is told over AppleScript to open the disk in an icon view at a fixed size, to place the two items and to set the background. The places the Finder puts the items are read back and the background is drawn in exactly those coordinates, so the arrow lands between the icons on every Mac.
The options:
--out(where the image is written, the app's own folder by default),--name(the image's name, the app's display name by default),--format(udzoby default,ulfosmaller but slower,u3zolarger,udrwnone),--title(the name on the background),--window W H,--icon-size,--no-layout(no window layout at all, and no permission to control the Finder needed),--verify(check the finished image) and--keep(keep the read-write image).The script needs the permission to control the Finder (System Settings › Privacy & Security › Automation); without it, or with
--no-layout, the image is built but opens in the Finder's own view. The background is drawn with Pillow (python3 -m pip install pillow); without it the image is built without one, the rest of the layout unchanged.🤖 Generated with Claude Code