summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-15 22:28:31 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-15 22:30:02 -0800
commit41256531b813c811fa416f204cfb3b6eab924450 (patch)
tree7386b5b458255274be818e07d7177c5f5bbf944d /packaging
parentabbea98344b767025672f2de5efaba57e4ab6fab (diff)
downloadsubsurface-41256531b813c811fa416f204cfb3b6eab924450.tar.gz
Further automization of the Mac build process
This improves the Plist.info and automates the version data that it uses utilizing the same git magic that the Makefile uses. It also makes the complete DMG creation a matter of simply running packaging/macosx/make-package.sh Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging')
-rw-r--r--packaging/macosx/Info.plist.in (renamed from packaging/macosx/Info.plist)8
-rwxr-xr-xpackaging/macosx/make-package.sh14
2 files changed, 12 insertions, 10 deletions
diff --git a/packaging/macosx/Info.plist b/packaging/macosx/Info.plist.in
index aecd9ab76..a623303a1 100644
--- a/packaging/macosx/Info.plist
+++ b/packaging/macosx/Info.plist.in
@@ -8,19 +8,15 @@
<string>Subsurface</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
- <key>CFBundleGetInfoString</key>
- <string>Multi Platform Divelog in C and Gtk</string>
<key>CFBundleSignature</key>
- <string>????</string>
+ <string>SBSF</string>
<key>CFBundleExecutable</key>
<string>subsurface</string>
<key>CFBundleIdentifier</key>
<string>org.hohndel.subsurface</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>1.0</string>
- <key>CFBundleVersionString</key>
- <string>2.9</string>
<key>CFBundleVersion</key>
- <string>2.9</string>
+ <string>CFBUNDLEVERSION_TOKEN</string>
</dict>
</plist>
diff --git a/packaging/macosx/make-package.sh b/packaging/macosx/make-package.sh
index 81e0f80f8..c8d21b283 100755
--- a/packaging/macosx/make-package.sh
+++ b/packaging/macosx/make-package.sh
@@ -21,16 +21,22 @@ DMGCREATE="../yoursway-create-dmg/create-dmg"
# other components have been installed
PREFIX="/Applications/Subsurface.app/Contents/Resources"
-# maybe we want to update this to use the git tag magic instead. That
-# would be more consistent
-VERSION=`grep -1 CFBundleVersionString packaging/macosx/Info.plist | tail -1 | cut -d\> -f 2 | cut -d\< -f 1`
+INFOPLIST=./packaging/macosx/Info.plist
+
+# same git version magic as in the Makefile
+VERSION=`git describe --tags --abbrev=12 | sed 's/v\([0-9]*\)\.\([0-9]*\)-\([0-9]*\)-.*/\1.\2.\3/ ; s/v\([0-9]\)\.\([0-9]*\)/\1.\2.0/' || echo "git.missing.please.hardcode.version"`
# gtk-mac-bundler allegedly supports signing by setting this environment
# variable, but this fails as we change the shared objects below and all
# the signatures become invalid.
# export APPLICATION_CERT="Dirk"
-# first clean up the staging area
+# force rebuilding of Info.plist
+rm ${INFOPLIST}
+
+# first build and install Subsurface and then clean up the staging area
+make
+make install-macosx
rm -rf ./staging
# now populate it with the bundle