make the standalone OSX app automatically install itself when run

This commit is contained in:
Joey Hess 2012-09-26 16:50:04 -04:00
parent 521b64f7ee
commit 3da78cc241
6 changed files with 117 additions and 42 deletions

View file

@ -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 "$@"