Use -a when copying the bundle in the DMG so symlinks are preserved

This commit is contained in:
Nadia Holmquist Pedersen 2021-04-23 14:51:53 +02:00
parent ce6c3dbe38
commit d1178a7514

View File

@ -98,8 +98,8 @@ codesign -s - --deep -f "$app"
if [[ $build_dmg == 1 ]]; then
mkdir dmg
cp -r "$app" dmg/
cp -a "$app" dmg/
ln -s /Applications dmg/Applications
hdiutil create -volname melonDS -srcfolder dmg -ov -format UDBZ melonDS.dmg
hdiutil create -fs HFS+ -volname melonDS -srcfolder dmg -ov -format UDBZ melonDS.dmg
rm -r dmg
fi