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
1 changed files with 2 additions and 2 deletions

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