Changeset 30111 for main/trunk/release-kits/shared/mac
- Timestamp:
- 2015-08-14T17:59:22+12:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/release-kits/shared/mac/Wrapper.app/Contents/MacOS/greenstone
r30103 r30111 21 21 if [[ -e "/tmp/jre.tar" ]]; then 22 22 rm /tmp/jre_bin 23 # get the GS jar installer's name and run it 23 # get the GS jar installer's name and run it with a dock icon (http://stackoverflow.com/questions/6006173/how-do-you-change-the-dock-icon-of-a-java-program) 24 24 cd "$BASEDIR/Resources/Java/" 25 25 gs_installer=`ls Greenstone-*-MacOS-intel.jar` 26 tar -xvf /tmp/jre.tar -C /tmp && rm /tmp/jre.tar && "/tmp/jre/bin/java" -jar "$gs_installer" 26 tar -xvf /tmp/jre.tar -C /tmp && rm /tmp/jre.tar && "/tmp/jre/bin/java" -jar -Xdock:icon="$BASEDIR/Resources/Java/icon.icns" "$gs_installer" 27 28 # if after running the installer, the user cancelled installation, then the jre would still be in tmp, remove it to 29 if [[ -e "/tmp/jre" ]]; then 30 rm -rf /tmp/jre 31 fi 27 32 28 33 else
Note:
See TracChangeset
for help on using the changeset viewer.