summaryrefslogtreecommitdiffhomepage
path: root/macosx/make-app-bundle.sh
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-07-19 11:11:13 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-07-19 11:12:04 +0200
commit84044ec3f6fe9ea90f3601b880d96be989fb7d79 (patch)
tree7b5b53cc0ace4b701a8f7a37289f7d8827e3d81f /macosx/make-app-bundle.sh
parent64a6892e8713c69e1f5ade929ec8035146de3f56 (diff)
fix osx, app bundle now builds
Diffstat (limited to 'macosx/make-app-bundle.sh')
-rw-r--r--macosx/make-app-bundle.sh22
1 files changed, 14 insertions, 8 deletions
diff --git a/macosx/make-app-bundle.sh b/macosx/make-app-bundle.sh
index 390f7af1..7e79d6db 100644
--- a/macosx/make-app-bundle.sh
+++ b/macosx/make-app-bundle.sh
@@ -4,7 +4,7 @@ APPNAME=opentrack
dir="$1"
test -n "$dir" || exit 1
-install="$1"
+install="$2"
test -n "$install" || exit 1
output_dir="$3"
test -n "$output_dir" || exit 1
@@ -14,12 +14,16 @@ test -n "$version" || exit 1
tmp="$(mktemp -d "/tmp/$APPNAME-tmp.XXXXXXX")"
test $? -eq 0 || exit 1
-cp -R "$dir/opentrack.app" "$tmp" || exit 1
-cp -R "$install/"* "$tmp/$APPNAME.app/Contents/MacOS" || exit 1
-sed -i -e "s#@OPENTRACK-VERSION@#$version#g" "$tmp/$APPNAME.app/Contents/Info.plist" || exit 1
+"$dir/install-fail-tool" "$install"
-rm -rf "$tmp/$APPNAME.iconset"
-mkdir "$tmp/$APPNAME.iconset"
+cp -R "$dir/opentrack.app" "$tmp/" || exit 1
+cp -R "$install" "$tmp/$APPNAME.app/Contents/MacOS" || exit 1
+sed -i '' -e "s#@OPENTRACK-VERSION@#$version#g" "$tmp/$APPNAME.app/Contents/Info.plist" || exit 1
+
+#cp "$dir/qt.conf" "$tmp/$APPNAME.app/Contents/MacOS" || exit 1
+
+mkdir "$tmp/$APPNAME.iconset" || exit 1
+mkdir "$tmp/$APPNAME.app/Contents/Resources" || exit 1
sips -z 16 16 "$dir/../facetracknoir/images/facetracknoir.png" --out "$tmp/$APPNAME.iconset/icon_16x16.png" || exit 1
sips -z 32 32 "$dir/../facetracknoir/images/facetracknoir.png" --out "$tmp/$APPNAME.iconset/icon_16x16@2x.png" || exit 1
@@ -31,5 +35,7 @@ iconutil -c icns -o "$tmp/$APPNAME.app/Contents/Resources/$APPNAME.icns" "$tmp/$
rm -r "$tmp/$APPNAME.iconset"
cd "$tmp" || exit 1
-zip -9 "$output_dir/$APPNAME-$version.zip" "$APPNAME.app" || exit 1
-ls -lh "$output_dir/$APPNAME-$version.zip" \ No newline at end of file
+rm -f "$output_dir/$APPNAME-$version.zip"
+zip -9r "$output_dir/$APPNAME-$version.zip" "$APPNAME.app" || exit 1
+rm -rf "$tmp"
+ls -lh "$output_dir/$APPNAME-$version.zip"