Skip to content

Commit

Permalink
Mac installer installs the App and FX App now (#4712)
Browse files Browse the repository at this point in the history
Closes #4400
  • Loading branch information
baconpaul authored Jul 3, 2021
1 parent 863fa20 commit 7c0d319
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 7 additions & 3 deletions scripts/installer_mac/ResourcesPackageScript/postinstall
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
rsync -r --delete "/tmp/Surge XT" /Library/Application\ Support/
chown -R $USER:staff "/Library/Application\ Support/Surge XT"
rm -rf "/tmp/Surge XT"
rsync -r --delete "/tmp/SXT/Surge XT" /Library/Application\ Support/
rsync -r --delete "/tmp/SXT/Surge XT.app" /Applications
rsync -r --delete "/tmp/SXT/Surge XT Effects.app" /Applications
chown -R $USER:staff "/Library/Application Support/Surge XT"
chown -R $USER:staff "/Applications/Surge XT.app"
chown -R $USER:staff "/Applications/Surge XT Effects.app"
rm -rf "/tmp/SXT"
6 changes: 3 additions & 3 deletions scripts/installer_mac/make_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,17 @@ if [[ -d $INDIR/$FXAU ]]; then
fi

if [[ -d $INDIR/$APP ]]; then
build_flavor "APP" "$APP" "com.surge-synth-team.surge-xt.app.pkg" "/Applications"
build_flavor "APP" "$APP" "com.surge-synth-team.surge-xt.app.pkg" "/tmp/SXT"
fi

if [[ -d $INDIR/$FXAPP ]]; then
build_flavor "FXAPP" "$FXAPP" "com.surge-synth-team.surge-xt-fx.app.pkg" "/Applications"
build_flavor "FXAPP" "$FXAPP" "com.surge-synth-team.surge-xt-fx.app.pkg" "/tmp/SXT"
fi

# Build the resources pagkage
RSRCS=${SOURCEDIR}/resources/data
echo --- BUILDING Resources pkg ---
pkgbuild --root "$RSRCS" --identifier "com.surge-synth-team.surge-xt.resources.pkg" --version $VERSION --scripts ${SOURCEDIR}/scripts/installer_mac/ResourcesPackageScript --install-location "/tmp/Surge XT" ${TMPDIR}/Surge_XT_Resources.pkg
pkgbuild --root "$RSRCS" --identifier "com.surge-synth-team.surge-xt.resources.pkg" --version $VERSION --scripts ${SOURCEDIR}/scripts/installer_mac/ResourcesPackageScript --install-location "/tmp/SXT/Surge XT" ${TMPDIR}/Surge_XT_Resources.pkg

echo --- Sub Packages Created ---
ls -l "${TMPDIR}"
Expand Down

0 comments on commit 7c0d319

Please sign in to comment.