diff options
author | 2012-09-26 16:50:04 -0400 | |
---|---|---|
committer | 2012-09-26 16:50:04 -0400 | |
commit | c9f341bd303a2d7b58eb0a7f6b596b7b1d7948bd (patch) | |
tree | 4f9097afb1cb69f1ba9653f6a90cb26ad0ddc090 /ui-macos | |
parent | cb1913e6cddfa090bda8b860d9b4129d83cf2c83 (diff) |
make the standalone OSX app automatically install itself when run
Diffstat (limited to 'ui-macos')
-rwxr-xr-x | ui-macos/git-annex.app/Contents/MacOS/git-annex-webapp | 8 |
1 files changed, 8 insertions, 0 deletions
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 "$@" |