summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2013-11-21 17:17:39 -0500
committerAdam Ierymenko <adam.ierymenko@gmail.com>2013-11-21 17:17:39 -0500
commite108924060895039f7a597e14b18db34f67bd036 (patch)
treef5f31ead08027c30167274dbdfaecd5462f400e1
parentb699bdefbd008a5dbfab4308e9b969b2aaa88ce1 (diff)
downloadinfinitytier-e108924060895039f7a597e14b18db34f67bd036.tar.gz
infinitytier-e108924060895039f7a597e14b18db34f67bd036.zip
Add script to bundle Qt frameworks with Mac .app (may not be done).
-rwxr-xr-xZeroTierUI/bundle_frameworks_with_mac_app.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/ZeroTierUI/bundle_frameworks_with_mac_app.sh b/ZeroTierUI/bundle_frameworks_with_mac_app.sh
new file mode 100755
index 00000000..2a6db621
--- /dev/null
+++ b/ZeroTierUI/bundle_frameworks_with_mac_app.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+qt_libs=/Applications/Qt5.1.1/5.1.1/clang_64/lib
+
+if [ ! -d "ZeroTier One.app" ]; then
+ echo "Build ZeroTier One.app first."
+ exit 1
+fi
+if [ ! -d "$qt_libs" ]; then
+ echo "Edit bundle_frameworks_with_mac_app.sh and set qt_libs correctly first."
+ exit 1
+fi
+
+cd "ZeroTier One.app/Contents"
+
+rm -rf Frameworks
+mkdir Frameworks
+cd Frameworks
+mkdir QtGui.framework
+cp -v $qt_libs/QtGui.framework/QtGui QtGui.framework
+mkdir QtWidgets.framework
+cp -v $qt_libs/QtWidgets.framework/QtWidgets QtWidgets.framework
+mkdir QtCore.framework
+cp -v $qt_libs/QtCore.framework/QtCore QtCore.framework