summaryrefslogtreecommitdiff
path: root/SparkleShare/Mac/postBuild.sh
diff options
context:
space:
mode:
Diffstat (limited to 'SparkleShare/Mac/postBuild.sh')
-rwxr-xr-xSparkleShare/Mac/postBuild.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/SparkleShare/Mac/postBuild.sh b/SparkleShare/Mac/postBuild.sh
new file mode 100755
index 0000000..643f33a
--- /dev/null
+++ b/SparkleShare/Mac/postBuild.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# expect path to app bundle argument
+export bundle=$1
+export projectFolder=$(dirname $0)
+export gitVersion=$(cat ${projectFolder}/git.version)
+
+echo postprocessing ${bundle}
+
+export PATH=/usr/local/bin:/opt/local/bin:/Library/Frameworks/Mono.framework/Versions/Current/bin:/usr/bin:/bin
+
+${projectFolder}/checkGit.sh
+tar -x -f ${projectFolder}/git-${gitVersion}.tar.gz -C ${bundle}/Contents/Resources
+cp -R SparkleShareInviteOpener.app ${bundle}/Contents/Resources
+cp config ${bundle}/Contents/MonoBundle