From c9f341bd303a2d7b58eb0a7f6b596b7b1d7948bd Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 26 Sep 2012 16:50:04 -0400 Subject: make the standalone OSX app automatically install itself when run --- ui-macos/git-annex.app/Contents/MacOS/git-annex-webapp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ui-macos/git-annex.app/Contents/MacOS/git-annex-webapp') diff --git a/ui-macos/git-annex.app/Contents/MacOS/git-annex-webapp b/ui-macos/git-annex.app/Contents/MacOS/git-annex-webapp index dc5c556b4..7955bef15 100755 --- a/ui-macos/git-annex.app/Contents/MacOS/git-annex-webapp +++ b/ui-macos/git-annex.app/Contents/MacOS/git-annex-webapp @@ -8,4 +8,12 @@ if [ ! -e "$base/runshell" ]; then echo "** cannot find $base/runshell" >&2 exit 1 fi + +# If this is a standalone app, set a variable that git-annex can use to +# install itself. +if [ -e "$base/bin/git-annex" ]; then + GIT_ANNEX_OSX_WEBAPP_PROGRAM="$base/bin/git-annex" + export OSX_GIT_ANNEX_APP_PROGRAM +fi + "$base/runshell" git-annex webapp "$@" -- cgit v1.2.3