shortened file path length

This commit is contained in:
Max 2026-06-26 05:35:41 -05:00
parent 3312af1dcd
commit a10ea4c3e5
3 changed files with 17 additions and 13 deletions

View file

@ -175,7 +175,7 @@ jobs:
- name: Install attr
run: sudo apt-get install -y attr
- name: Install hfsutils, and libdmg-hfsplus
- name: Install hfsutils and libdmg-hfsplus
run: |
sudo apt-get install -y hfsutils cmake
git clone https://github.com/mozilla/libdmg-hfsplus.git

View file

@ -143,16 +143,18 @@ fi
echo ""
echo "Packaging .dmg"
UNCOMPRESSED_DMG_SHORT="$OUTPUT_DIRECTORY/app.dmg" # hfsutils is old, max fle path length is 255.
UNCOMPRESSED_DMG="$OUTPUT_DIRECTORY/UNCOMPRESSED_$RELEASE_DMG_FILE_NAME"
COMPRESSED_DMG="$OUTPUT_DIRECTORY/$RELEASE_DMG_FILE_NAME"
dd if=/dev/zero of="$UNCOMPRESSED_DMG" bs=1M count=100
hformat -l "Ryujinx" "$UNCOMPRESSED_DMG"
dd if=/dev/zero of="$UNCOMPRESSED_DMG_SHORT" bs=1M count=100
hformat -l "Ryujinx" "$UNCOMPRESSED_DMG_SHORT"
hmount "$UNCOMPRESSED_DMG"
hcopy -r "$DMG_FOLDER/" "$UNCOMPRESSED_DMG":
humount "$UNCOMPRESSED_DMG"
rm -r "$DMG_FOLDER"
hmount "$UNCOMPRESSED_DMG_SHORT"
hcopy -r "$DMG_FOLDER/" "$UNCOMPRESSED_DMG_SHORT":
humount "$UNCOMPRESSED_DMG_SHORT"
rm -r "$DMG_FOLDER
mv "$UNCOMPRESSED_DMG_SHORT" "$UNCOMPRESSED_DMG"
dmg dmg -c lzma "$UNCOMPRESSED_DMG" "$COMPRESSED_DMG"
rm -f "$UNCOMPRESSED_DMG"

View file

@ -139,16 +139,18 @@ fi
echo ""
echo "Packaging .dmg"
UNCOMPRESSED_DMG_SHORT="$OUTPUT_DIRECTORY/app.dmg" # hfsutils is old, max fle path length is 255.
UNCOMPRESSED_DMG="$OUTPUT_DIRECTORY/UNCOMPRESSED_$RELEASE_DMG_FILE_NAME"
COMPRESSED_DMG="$OUTPUT_DIRECTORY/$RELEASE_DMG_FILE_NAME"
dd if=/dev/zero of="$UNCOMPRESSED_DMG" bs=1M count=100
hformat -l "Ryujinx" "$UNCOMPRESSED_DMG"
dd if=/dev/zero of="$UNCOMPRESSED_DMG_SHORT" bs=1M count=100
hformat -l "Ryujinx" "$UNCOMPRESSED_DMG_SHORT"
hmount "$UNCOMPRESSED_DMG"
hcopy -r "$DMG_FOLDER/" "$UNCOMPRESSED_DMG":
humount "$UNCOMPRESSED_DMG"
rm -r "$DMG_FOLDER"
hmount "$UNCOMPRESSED_DMG_SHORT"
hcopy -r "$DMG_FOLDER/" "$UNCOMPRESSED_DMG_SHORT":
humount "$UNCOMPRESSED_DMG_SHORT"
rm -r "$DMG_FOLDER
mv "$UNCOMPRESSED_DMG_SHORT" "$UNCOMPRESSED_DMG"
dmg dmg -c lzma "$UNCOMPRESSED_DMG" "$COMPRESSED_DMG"
rm -f "$UNCOMPRESSED_DMG"