Skip to content

Commit

Permalink
Updated Variables
Browse files Browse the repository at this point in the history
File destination, version numbers
  • Loading branch information
traviskirton committed Feb 8, 2015
1 parent 78c5e57 commit f1d75bc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions buildInstaller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
# Created by Travis Kirton on 14-06-02.

# sets the version for the current installer
VERSION="0_01"
VERSION="0_02"

# builds the component packages, passing the current version
sh buildPackageComponents.sh $VERSION

# defines the names of the component packages, this matches their names defined in the buildPackageComponents.sh script
TEMPLATES_PKG="INSTALL_TEMPLATES_$VERSION.pkg"
DOCSET_PKG="INSTALL_DOCSET_$VERSION.pkg"
TEMPLATES_PKG="INSTALL_TEMPLATES_0_02.pkg"
DOCSET_PKG="INSTALL_DOCSET_0_01.pkg"

#builds the distribution xml
productbuild --synthesize --package $TEMPLATES_PKG --package $DOCSET_PKG distribution.xml
Expand Down
6 changes: 3 additions & 3 deletions buildPackageComponents.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ INSTALLER_VERSION="$1"

PROJECT_TEMPLATES_VERSION="$1"
PROJECT_TEMPLATES_LOCATION="./projectTemplates"
PROJECT_TEMPLATES_NAME="INSTALL_TEMPLATES_$TEMPLATES_VERSION.pkg"
PROJECT_TEMPLATES_NAME="INSTALL_TEMPLATES_0_02.pkg"
#weird... using the TEMPLATES_DESTINATION variable doesn't work, but pasting it in does!
#TEMPLATES_DESTINATION="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/Project Templates/Application"
pkgbuild --root $PROJECT_TEMPLATES_LOCATION --identifier com.c4ios.installer.templates --version $INSTALLER_VERSION --install-location /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/Project\ Templates/Application $PROJECT_TEMPLATES_NAME
pkgbuild --root $PROJECT_TEMPLATES_LOCATION --identifier com.c4ios.installer.templates --version $INSTALLER_VERSION --install-location /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/Project\ Templates/iOS/Application $PROJECT_TEMPLATES_NAME

DOCSET_VERSION="$1"
DOCSET_LOCATION="./docs"
DOCSET_NAME="INSTALL_DOCSET_$DOCSET_VERSION.pkg"
DOCSET_NAME="INSTALL_DOCSET_0_01.pkg"
#weird... using the DOCSET_DESTINATION variable doesn't work, but pasting it in does!
#DOCSET_DESTINATION="/Users/$USER/Desktop/Install/DocSets"
pkgbuild --root "$DOCSET_LOCATION" --identifier com.c4ios.installer.docset --version $INSTALLER_VERSION --install-location /Users/$USER/Library/Developer/Shared/Documentation/DocSets/ $DOCSET_NAME
Expand Down
4 changes: 2 additions & 2 deletions distribution.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
<choice id="com.c4ios.installer.templates" visible="false">
<pkg-ref id="com.c4ios.installer.templates"/>
</choice>
<pkg-ref id="com.c4ios.installer.templates" version="0_01" onConclusion="none">INSTALL_TEMPLATES_0_01.pkg</pkg-ref>
<pkg-ref id="com.c4ios.installer.templates" version="0_02" onConclusion="none">INSTALL_TEMPLATES_0_02.pkg</pkg-ref>
<choice id="com.c4ios.installer.docset" visible="false">
<pkg-ref id="com.c4ios.installer.docset"/>
</choice>
<pkg-ref id="com.c4ios.installer.docset" version="0_01" onConclusion="none">INSTALL_DOCSET_0_01.pkg</pkg-ref>
<pkg-ref id="com.c4ios.installer.docset" version="0_02" onConclusion="none">INSTALL_DOCSET_0_01.pkg</pkg-ref>
<title>C4 Xcode Templates</title>
<background file="C4InstallerBackground.png" mime-type="image/png"/>
<welcome file="welcome.rtf" mime-type="text/rtf"/>
Expand Down

0 comments on commit f1d75bc

Please sign in to comment.