]> Git Repo - VerusCoin.git/commitdiff
fixes #2506: mac binary with proper version and copyright meta-informations (Info...
authorJonas Schnelli <[email protected]>
Mon, 15 Apr 2013 14:15:11 +0000 (16:15 +0200)
committerJonas Schnelli <[email protected]>
Mon, 15 Apr 2013 14:15:11 +0000 (16:15 +0200)
Due a bug in QT (https://bugreports.qt-project.org/browse/QTBUG-21267), the mac binary of the last release contains bulk meta informations.

The url-handler (bitcoin://) is also not working in current release

Should be fixed with this commit.

Signed-off-by: Jonas Schnelli <[email protected]>
doc/release-process.txt
share/qt/Info.plist
share/qt/clean_mac_info_plist.py [new file with mode: 0755]

index 29271ad224b6b35dc5334d2d4afb4d0853d2ebae..ce6614335e2b5547768c84683c93ba45e0b35902 100644 (file)
@@ -80,6 +80,7 @@
   make
   export QTDIR=/opt/local/share/qt4  # needed to find translations/qt_*.qm files
   T=$(contrib/qt_translations.py $QTDIR/translations src/qt/locale)
+  python2.7 share/qt/clean_mac_info_plist.py
   python2.7 contrib/macdeploy/macdeployqtplus Bitcoin-Qt.app -add-qt-tr $T -dmg -fancy contrib/macdeploy/fancy.plist
 
  Build output expected:
index 58b2152e9f4698bbc60486ce977d9ed518a8e427..2312094c4f4941e9f1f478d79ca0e6ba61da5d13 100644 (file)
@@ -7,7 +7,11 @@
        <key>CFBundlePackageType</key>
        <string>APPL</string>
        <key>CFBundleGetInfoString</key>
-       <string>Bitcoin-Qt</string>
+       <string>$VERSION, Copyright © 2009-$YEAR The Bitcoin developers</string>
+       <key>CFBundleShortVersionString</key>
+       <string>$VERSION</string>
+       <key>CFBundleVersion</key>
+       <string>$VERSION</string>
        <key>CFBundleSignature</key>
        <string>????</string>
        <key>CFBundleExecutable</key>
diff --git a/share/qt/clean_mac_info_plist.py b/share/qt/clean_mac_info_plist.py
new file mode 100755 (executable)
index 0000000..df677f5
--- /dev/null
@@ -0,0 +1,29 @@
+#!/usr/bin/env python
+# Jonas Schnelli, 2013
+# make sure the Bitcoin-Qt.app contains the right plist (including the right version)
+# fix made because of serval bugs in Qt mac deployment (https://bugreports.qt-project.org/browse/QTBUG-21267)
+
+from string import Template
+from datetime import date
+
+bitcoinDir = "./";
+
+inFile     = bitcoinDir+"/share/qt/Info.plist"
+outFile    = "Bitcoin-Qt.app/Contents/Info.plist"
+version    = "unknown";
+
+fileForGrabbingVersion = bitcoinDir+"bitcoin-qt.pro"
+for line in open(fileForGrabbingVersion):
+       lineArr = line.replace(" ", "").split("=");
+       if lineArr[0].startswith("VERSION"):
+               version = lineArr[1].replace("\n", "");
+
+fIn = open(inFile, "r")
+fileContent = fIn.read()
+s = Template(fileContent)
+newFileContent = s.substitute(VERSION=version,YEAR=date.today().year)
+
+fOut = open(outFile, "w");
+fOut.write(newFileContent);
+
+print "Info.plist fresh created"
\ No newline at end of file
This page took 0.027338 seconds and 4 git commands to generate.