Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac installer installs the App and FX App now #4712

Merged
merged 1 commit into from
Jul 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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