File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ # Note: The structure of this package depends on the -rpath,./lib to be set at compile/link time.
4+
5+ version=" 2.1.3"
6+ arch=` uname -m`
7+
8+ if [ " ${arch} " = " x86_64" ]; then
9+ arch=" 64bit"
10+ else
11+ arch=" 32bit"
12+ fi
13+
14+ if [ -f SolarCoin-Qt.app/Contents/MacOS/SolarCoin-Qt ] && [ -f solarcoin.conf ] && [ -f README ]; then
15+ echo " Building SolarCoin_${version} _${arch} .pkg ...\n"
16+ cp solarcoin.conf SolarCoin-Qt.app/Contents/MacOS/
17+ cp README SolarCoin-Qt.app/Contents/MacOS/
18+ cp doc/SolarCoinEula.* SolarCoin-Qt.app/Contents/MacOS/
19+
20+ # Remove the old archive
21+ if [ -f SolarCoin_${version} _${arch} .pkg ]; then
22+ rm -f SolarCoin_${version} _${arch} .pkg
23+ fi
24+
25+ # Deploy the app, create the plist, then build the package.
26+ macdeployqt ./SolarCoin-Qt.app -always-overwrite
27+ pkgbuild --analyze --root ./SolarCoin-Qt.app share/qt/SolarCoin-Qt.plist
28+ pkgbuild --root ./SolarCoin-Qt.app --component-plist share/qt/SolarCoin-Qt.plist --identifier org.solarcoin.SolarCoin-Qt --install-location /Applications/SolarCoin-Qt.app SolarCoin_${version} _${arch} .pkg
29+ echo " Package created in: $PWD /SolarCoin_${version} _${arch} .pkg\n"
30+ else
31+ echo " Error: Missing files!\n"
32+ echo " Run this script from the folder containing SolarCoin-Qt.app, solarcoin.conf and README.\n"
33+ fi
34+
You can’t perform that action at this time.
0 commit comments