make the standalone OSX app automatically install itself when run
This commit is contained in:
parent
521b64f7ee
commit
3da78cc241
6 changed files with 117 additions and 42 deletions
|
@ -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 "$@"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue