aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbhi Beckert <abhi@abhibeckert.com>2016-03-04 17:17:57 +1000
committerAbhi Beckert <abhi@abhibeckert.com>2016-03-04 17:17:57 +1000
commita0bb2c4fe40f6a739b7e8df36a79f0f5dd69331b (patch)
tree2cec020c14ab3d948745b74d1f94efaf2a86b3eb
parent49cc4d168902782b7be123dbefc8426ec11be2e2 (diff)
parent13143f403a2553e1094668e614f96a9d50ce9c40 (diff)
downloadsequelpro-a0bb2c4fe40f6a739b7e8df36a79f0f5dd69331b.tar.gz
sequelpro-a0bb2c4fe40f6a739b7e8df36a79f0f5dd69331b.tar.bz2
sequelpro-a0bb2c4fe40f6a739b7e8df36a79f0f5dd69331b.zip
Merge pull request #2235 from Zifius/feature/application-folder-shortcut
Added Application folder shortcut, resolves #1842
-rwxr-xr-xScripts/package-application.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/Scripts/package-application.sh b/Scripts/package-application.sh
index 002d51ce..86b8082d 100755
--- a/Scripts/package-application.sh
+++ b/Scripts/package-application.sh
@@ -67,6 +67,12 @@ mkdir "${DISTTEMP}"
# Copy in the required distribution files
cp -R "${BUILT_PRODUCTS_DIR}/${TARGET_NAME}${WRAPPER_SUFFIX}" "${DMG_BUILD_PATH}/disttemp"
+# Add a link to the Applications dir
+echo "Add link to /Applications"
+pushd "${DMG_BUILD_PATH}/disttemp"
+ln -s /Applications
+popd
+
# Create a disk image
hdiutil create -srcfolder "${DISTTEMP}" -volname "$DMG_VOLUME_NAME" -fs HFS+ -fsargs '-c c=64,a=16,e=16' -format UDRW "${DMG_BUILD_PATH}/${DMG_NAME}.temp.dmg" > /dev/null