-
Notifications
You must be signed in to change notification settings - Fork 2
/
buildInstaller.sh
executable file
·34 lines (25 loc) · 1.02 KB
/
buildInstaller.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# buildInstaller.sh
#
# Created by Travis Kirton on 14-06-02.
# sets the version for the current installer
VERSION="1_0_2"
# 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_1_0_2.pkg"
BASE_PKG="INSTALL_BASE_1_0_2.pkg"
IOS_PKG="INSTALL_IOS_1_0_2.pkg"
#builds the distribution xml
productbuild --synthesize --package $TEMPLATES_PKG --package $BASE_PKG --package $IOS_PKG distribution.xml
#modifies the distribution LANGUAGECHOICE_PKG
sh updateDistributionXML.sh
#builds the distribution package
productbuild --distribution distribution.xml --resources ./resources unsigned.pkg
#signs the package
productsign --sign "Developer ID Installer: Travis Stuart Kirton (75C7KVJZ99)" unsigned.pkg signed.pkg
#renames the package
mv signed.pkg C4Installer_$VERSION.pkg
rm -Rf $TEMPLATES_PKG
rm -Rf $BASE_PKG
rm -Rf $IOS_PKG
rm -Rf unsigned.pkg