Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[fix] make_package: fix for package manager path

  • Loading branch information...
commit a6a95159019b32ee8714ac44c20d1c8026054f68 1 parent 87c7cf4
@Aqua-Ye Aqua-Ye authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 make_package.sh
View
4 make_package.sh
@@ -35,6 +35,8 @@ DEB="false"
PKG="false"
WINPKG="false"
+PACK_MAN="/Applications/Xcode.app/Contents/Applications/PackageMaker" # PackageManager path for OS X
+
help() {
echo "Makes an installation package from an installed Opa (installation"
echo "should be done through install_release.sh)."
@@ -239,7 +241,7 @@ if [ "$PKG" = "true" ]; then
OS_VARIANT=`sw_vers -productVersion`
PKG_NAME="Opa $VERSION_MAJOR $OFFICIAL_VERSION_NAME - Build $BUILDNUM for Mac OS X (64-bit)"
echo "Making package '$MYDIR/$PKG_NAME.pkg'"
- /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker --root $INSTALLDIR --resources $OPAGENERAL/installer/Mac/Resources/ --scripts $OPAGENERAL/installer/Mac/Scripts --info $OPAGENERAL/installer/Mac/Info.plist --id com.mlstate.opa.pkg -o "$MYDIR/$PKG_NAME.pkg" -n $BUILDNUM --domain system --root-volume-only --discard-forks -m --verbose --title "Opa $VERSION_MAJOR $OFFICIAL_VERSION_NAME"
+ $(PACK_MAN).app/Contents/MacOS/PackageMaker --root $INSTALLDIR --resources $OPAGENERAL/installer/Mac/Resources/ --scripts $OPAGENERAL/installer/Mac/Scripts --info $OPAGENERAL/installer/Mac/Info.plist --id com.mlstate.opa.pkg -o "$MYDIR/$PKG_NAME.pkg" -n $BUILDNUM --domain system --root-volume-only --discard-forks -m --verbose --title "Opa $VERSION_MAJOR $OFFICIAL_VERSION_NAME"
echo "Creating image '$MYDIR/$PKG_NAME.dmg'"
hdiutil create "$MYDIR/$PKG_NAME.dmg" -srcfolder "$MYDIR/$PKG_NAME.pkg"
fi
Please sign in to comment.
Something went wrong with that request. Please try again.