Build app pkg with preinstall script

This commit is contained in:
Greg Neagle
2014-05-28 12:18:32 -07:00
parent 88199f2f0f
commit f58fdd7a2c
3 changed files with 39 additions and 14 deletions

View File

@@ -0,0 +1,13 @@
#!/bin/sh
# remove any Managed Software Update.app bundle since the installer
# won't replace a bundle with a symlink, leading to yucky stuff like
# "/Applications/Utilities/Managed Software Update.app 1"
if [ -d "$3/Applications/Utilities/Managed Software Update.app" ] ; then
/bin/rm -r "$3/Applications/Utilities/Managed Software Update.app"
fi
if [ -d "$3/Applications/Utilities/Managed Software Update.app 1" ] ; then
/bin/rm -r "$3/Applications/Utilities/Managed Software Update.app 1"
fi