Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Commit

Permalink
Add option to add EULA to Mac installer
Browse files Browse the repository at this point in the history
  • Loading branch information
njx committed Sep 10, 2012
1 parent df24eff commit c21f471
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion installer/mac/buildInstaller.sh
Expand Up @@ -24,6 +24,11 @@ if [ -f ./assets/VolumeIcon.icns ]; then
customIcon="--custom-icon"
fi

# if license folder exists, use it
if [ -d ./dropDmgConfig/licenses/bracketsLicense ]; then
customLicense="--license-folder ./dropDmgConfig/licenses/bracketsLicense"
fi

# create disk layout
rm -rf $tempLayoutDir
cp -r ./dropDmgConfig/layouts/bracketsLayout/ "$tmpLayout"
Expand All @@ -33,7 +38,7 @@ grep -rl APPLICATION_NAME "${tmpLayout}/Info.plist" | xargs sed -i -e "s/APPLICA

# build the DMG
echo "building DMG..."
dropdmg ./$tempDir --format $format --encryption $encryption $customIcon --layout-folder "$tmpLayout" --volume-name "$releaseName" --base-name "$releaseName"
dropdmg ./$tempDir --format $format --encryption $encryption $customIcon --layout-folder "$tmpLayout" $customLicense --volume-name "$releaseName" --base-name "$releaseName"

# clean up
rm -rf $tempDir
Expand Down

0 comments on commit c21f471

Please sign in to comment.