mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2026-08-18 02:57:45 +00:00
attempt custom icon attribute #2
This commit is contained in:
parent
f23bcc17f6
commit
4844e85fff
2 changed files with 6 additions and 2 deletions
|
|
@ -150,7 +150,9 @@ dd if=/dev/zero of="$UNCOMPRESSED_DMG" bs=1M count=100
|
|||
genisoimage -D -V "Ryujinx" \
|
||||
-no-pad -apple -uid 0 -gid 0 -dir-mode 0755 -file-mode 0755 \
|
||||
-o "$UNCOMPRESSED_DMG" "$DMG_FOLDER"
|
||||
hfsplus setattr "$UNCOMPRESSED_DMG" "kHasCustomIcon" 0x0400
|
||||
# https://developer.apple.com/library/archive/technotes/tn/tn1150.html
|
||||
FINDER_INFO=$(hfsplus "$UNCOMPRESSED_DMG" getattr / finderinfo)
|
||||
hfsplus "$UNCOMPRESSED_DMG" setattr / finderinfo ${FINDER_INFO:0:24}04${FINDER_INFO:26}
|
||||
dmg dmg -c lzma "$UNCOMPRESSED_DMG" "$COMPRESSED_DMG"
|
||||
rm -r "$DMG_FOLDER"
|
||||
rm -f "$UNCOMPRESSED_DMG"
|
||||
|
|
|
|||
|
|
@ -146,7 +146,9 @@ dd if=/dev/zero of="$UNCOMPRESSED_DMG" bs=1M count=100
|
|||
genisoimage -D -V "Ryujinx" \
|
||||
-no-pad -apple -uid 0 -gid 0 -dir-mode 0755 -file-mode 0755 \
|
||||
-o "$UNCOMPRESSED_DMG" "$DMG_FOLDER"
|
||||
hfsplus setattr "$UNCOMPRESSED_DMG" "kHasCustomIcon" 0x0400
|
||||
# https://developer.apple.com/library/archive/technotes/tn/tn1150.html
|
||||
FINDER_INFO=$(hfsplus "$UNCOMPRESSED_DMG" getattr / finderinfo)
|
||||
hfsplus "$UNCOMPRESSED_DMG" setattr / finderinfo ${FINDER_INFO:0:24}04${FINDER_INFO:26}
|
||||
dmg dmg -c lzma "$UNCOMPRESSED_DMG" "$COMPRESSED_DMG"
|
||||
rm -r "$DMG_FOLDER"
|
||||
rm -f "$UNCOMPRESSED_DMG"
|
||||
|
|
|
|||
Loading…
Reference in a new issue