summaryrefslogtreecommitdiffstats
path: root/packaging/ios
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-14 06:59:04 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-23 17:26:46 -0700
commita4a9edcd0fa32230b6a279b249fe07243393b584 (patch)
tree5fde240de5a9855a00a14800db45bc277afb2900 /packaging/ios
parent9028c807b2ca1e9c8bba4a570c4c780cc962ca61 (diff)
downloadsubsurface-a4a9edcd0fa32230b6a279b249fe07243393b584.tar.gz
iOS build: create Info.plist with correct version information
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging/ios')
-rw-r--r--packaging/ios/Info.plist.in (renamed from packaging/ios/Info.plist)106
-rw-r--r--packaging/ios/build.sh3
2 files changed, 59 insertions, 50 deletions
diff --git a/packaging/ios/Info.plist b/packaging/ios/Info.plist.in
index b25f58e7a..a1a437917 100644
--- a/packaging/ios/Info.plist
+++ b/packaging/ios/Info.plist.in
@@ -2,66 +2,76 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
+ <key>CFBundleDisplayName</key>
+ <string>Subsruface-mobile</string>
+ <key>CFBundleExecutable</key>
+ <string>subsurface-ios</string>
+ <key>CFBundleGetInfoString</key>
+ <string>Created by Qt/QMake</string>
<key>CFBundleIcons</key>
<dict>
- <key>CFBundlePrimaryIcon</key>
- <dict>
- <key>CFBundleIconFiles</key>
- <array>
- <string>AppIcon29x29.png</string>
- <string>AppIcon29x29@2x.png</string>
- <string>AppIcon40x40@2x.png</string>
- <string>AppIcon57x57.png</string>
- <string>AppIcon57x57@2x.png</string>
- <string>AppIcon60x60@2x.png</string>
- </array>
- </dict>
+ <key>CFBundlePrimaryIcon</key>
+ <dict>
+ <key>CFBundleIconFiles</key>
+ <array>
+ <string>AppIcon29x29.png</string>
+ <string>AppIcon29x29@2x.png</string>
+ <string>AppIcon40x40@2x.png</string>
+ <string>AppIcon57x57.png</string>
+ <string>AppIcon57x57@2x.png</string>
+ <string>AppIcon60x60@2x.png</string>
+ </array>
+ </dict>
</dict>
<key>CFBundleIcons~ipad</key>
<dict>
- <key>CFBundlePrimaryIcon</key>
- <dict>
- <key>CFBundleIconFiles</key>
- <array>
- <string>AppIcon29x29.png</string>
- <string>AppIcon29x29@2x.png</string>
- <string>AppIcon40x40@2x.png</string>
- <string>AppIcon57x57.png</string>
- <string>AppIcon57x57@2x.png</string>
- <string>AppIcon60x60@2x.png</string>
- <string>AppIcon29x29~ipad.png</string>
- <string>AppIcon29x29@2x~ipad.png</string>
- <string>AppIcon40x40~ipad.png</string>
- <string>AppIcon40x40@2x~ipad.png</string>
- <string>AppIcon50x50~ipad.png</string>
- <string>AppIcon50x50@2x~ipad.png</string>
- <string>AppIcon72x72~ipad.png</string>
- <string>AppIcon72x72@2x~ipad.png</string>
- <string>AppIcon76x76~ipad.png</string>
- <string>AppIcon76x76@2x~ipad.png</string>
- </array>
- </dict>
+ <key>CFBundlePrimaryIcon</key>
+ <dict>
+ <key>CFBundleIconFiles</key>
+ <array>
+ <string>AppIcon29x29.png</string>
+ <string>AppIcon29x29@2x.png</string>
+ <string>AppIcon40x40@2x.png</string>
+ <string>AppIcon57x57.png</string>
+ <string>AppIcon57x57@2x.png</string>
+ <string>AppIcon60x60@2x.png</string>
+ <string>AppIcon29x29~ipad.png</string>
+ <string>AppIcon29x29@2x~ipad.png</string>
+ <string>AppIcon40x40~ipad.png</string>
+ <string>AppIcon40x40@2x~ipad.png</string>
+ <string>AppIcon50x50~ipad.png</string>
+ <string>AppIcon50x50@2x~ipad.png</string>
+ <string>AppIcon72x72~ipad.png</string>
+ <string>AppIcon72x72@2x~ipad.png</string>
+ <string>AppIcon76x76~ipad.png</string>
+ <string>AppIcon76x76@2x~ipad.png</string>
+ </array>
+ </dict>
</dict>
- <key>CFBundlePackageType</key>
- <string>APPL</string>
- <key>CFBundleGetInfoString</key>
- <string>Created by Qt/QMake</string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleExecutable</key>
- <string>subsurface-ios</string>
<key>CFBundleIdentifier</key>
<string>org.subsurface-divelog.subsurface-mobile</string>
- <key>CFBundleDisplayName</key>
- <string>Subsruface-mobile</string>
<key>CFBundleName</key>
<string>Subsruface-mobile</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
<key>CFBundleShortVersionString</key>
- <string>0.93</string>
+ <string>@MOBILE_VERSION@</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
<key>CFBundleVersion</key>
- <string>1.0</string>
+ <string>@CANONICAL_VERSION@</string>
<key>LSRequiresIPhoneOS</key>
<true/>
+ <key>NOTE</key>
+ <string>This file was generated by Qt/QMake.</string>
+ <key>NSHumanReadableCopyright</key>
+ <string>Copyright © 2011-2016 Linus Torvalds, Dirk Hohndel, Tomaz Canabrava and the Subsurface developer team</string>
+ <key>NSMainNibFile</key>
+ <string>SubsurfaceMobileLaunch</string>
+ <key>UIBackgroundModes</key>
+ <array>
+ <string>location</string>
+ </array>
<key>UILaunchStoryboardName</key>
<string>SubsurfaceMobileLaunch</string>
<key>UISupportedInterfaceOrientations</key>
@@ -71,9 +81,5 @@
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
- <key>NOTE</key>
- <string>This file was generated by Qt/QMake.</string>
- <key>NSHumanReadableCopyright</key>
- <string>Copyright © 2011-2016 Linus Torvalds, Dirk Hohndel, Tomaz Canabrava and the Subsurface developer team</string>
</dict>
</plist>
diff --git a/packaging/ios/build.sh b/packaging/ios/build.sh
index 2b19d08a9..be313f094 100644
--- a/packaging/ios/build.sh
+++ b/packaging/ios/build.sh
@@ -30,6 +30,9 @@ echo "#define GIT_VERSION_STRING \"$GITVERSION\"" > subsurface-mobile/ssrf-versi
echo "#define CANONICAL_VERSION_STRING \"$CANONICALVERSION\"" >> subsurface-mobile/ssrf-version.h
echo "#define MOBILE_VERSION_STRING \"$MOBILEVERSION\"" >> subsurface-mobile/ssrf-version.h
+# create Info.plist with the correct versions
+cat Info.plist.in | sed "s/@MOBILE_VERSION@/$MOBILEVERSION/;s/@CANONICAL_VERSION@/$CANONICALVERSION/" > Info.plist
+
# Build Subsurface-mobile by default
SUBSURFACE_MOBILE=1