Last change
on this file since 29354 was 29354, checked in by ak19, 9 years ago |
Got Expeditee Mac installer working. Installer is read-only, and if a user attempts to run Expeditee from within the installer, an error message is displayed telling them to install it first.
|
-
Property svn:executable
set to
*
|
File size:
909 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | BINDIR="`dirname "$0"`"
|
---|
4 | cd "$BINDIR/.."
|
---|
5 | BASEDIR="`pwd`"
|
---|
6 | if [[ -w $BASEDIR ]]; then
|
---|
7 | [[ -e "$BASEDIR/Resources/jre_bin" ]] && chmod +x "$BASEDIR/Resources/jre_bin" && "$BASEDIR/Resources/jre_bin" -o"$BASEDIR/Resources" && rm "$BASEDIR/Resources/jre_bin"
|
---|
8 | "$BASEDIR/Resources/jre/bin/java" -jar "$BASEDIR/Resources/Expeditee.jar"
|
---|
9 | else
|
---|
10 | # display error message
|
---|
11 | # see: https://developer.apple.com/library/mac/documentation/AppleScript/Conceptual/AppleScriptLangGuide/reference/ASLR_cmds.html#//apple_ref/doc/uid/TP40000983-CH216-SW11
|
---|
12 | osascript -e 'tell app "System Events" to display alert "To install Expeditee, drag and drop the app wherever you would like to install it (such as the Applications folder or your desktop).\nOnce Expeditee is installed, you can close this installer window and run Expeditee by double-clicking on the installed app" as warning giving up after 10'
|
---|
13 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.