hcopy isnt recursive, but its ok because this is bash and all the rules are made up

This commit is contained in:
Max 2026-06-26 07:44:56 -05:00
parent 8d537b3fb0
commit c3563e81af
2 changed files with 26 additions and 2 deletions

View file

@ -151,7 +151,19 @@ dd if=/dev/zero of="$UNCOMPRESSED_DMG_SHORT" bs=1M count=100
hformat -l "Ryujinx" "$UNCOMPRESSED_DMG_SHORT"
hmount "$UNCOMPRESSED_DMG_SHORT"
hcopy -r "$DMG_FOLDER/" "$UNCOMPRESSED_DMG_SHORT":
hcopy -m "$DMG_FOLDER/" "$UNCOMPRESSED_DMG_SHORT":
find . -type f | sed 's|^\./||' | awk -F/ '
{
path=""
for(i=1; i<NF; i++) {
path = (path ? path ":" : "") $i
print "hmkdir \":" path "\" 2>/dev/null"
}
target = (NF > 1 ? gensub(/\//, ":", "g", $0) : $0)
print "hcopy -m \"./" $0 "\" \":" target "\""
}'
humount "$UNCOMPRESSED_DMG_SHORT"
rm -r "$DMG_FOLDER
mv "$UNCOMPRESSED_DMG_SHORT" "$UNCOMPRESSED_DMG"

View file

@ -147,7 +147,19 @@ dd if=/dev/zero of="$UNCOMPRESSED_DMG_SHORT" bs=1M count=100
hformat -l "Ryujinx" "$UNCOMPRESSED_DMG_SHORT"
hmount "$UNCOMPRESSED_DMG_SHORT"
hcopy -r "$DMG_FOLDER/" "$UNCOMPRESSED_DMG_SHORT":
hcopy -m "$DMG_FOLDER/" "$UNCOMPRESSED_DMG_SHORT":
find . -type f | sed 's|^\./||' | awk -F/ '
{
path=""
for(i=1; i<NF; i++) {
path = (path ? path ":" : "") $i
print "hmkdir \":" path "\" 2>/dev/null"
}
target = (NF > 1 ? gensub(/\//, ":", "g", $0) : $0)
print "hcopy -m \"./" $0 "\" \":" target "\""
}'
humount "$UNCOMPRESSED_DMG_SHORT"
rm -r "$DMG_FOLDER
mv "$UNCOMPRESSED_DMG_SHORT" "$UNCOMPRESSED_DMG"