summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/resources/scripts
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-04-29 12:41:46 +0200
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-04-29 12:41:46 +0200
commitf698352c3379b27e338c054e078e70eac9ff4de5 (patch)
treeffcbf8db89d56ab72bceea3eb29cab09ec329bcd /pdf-over-gui/src/main/resources/scripts
parentc4511a534ce10104664d58c48c52ec0842a1056b (diff)
downloadpdf-over-f698352c3379b27e338c054e078e70eac9ff4de5.tar.gz
pdf-over-f698352c3379b27e338c054e078e70eac9ff4de5.tar.bz2
pdf-over-f698352c3379b27e338c054e078e70eac9ff4de5.zip
other pom cleanups:
- auto-extract bundled jre - auto-build zip archive - only build jar installer for linux - only include icons where necessary
Diffstat (limited to 'pdf-over-gui/src/main/resources/scripts')
-rw-r--r--pdf-over-gui/src/main/resources/scripts/pdf-over_mac.sh2
-rw-r--r--pdf-over-gui/src/main/resources/scripts/postinstall_mac.sh17
2 files changed, 1 insertions, 18 deletions
diff --git a/pdf-over-gui/src/main/resources/scripts/pdf-over_mac.sh b/pdf-over-gui/src/main/resources/scripts/pdf-over_mac.sh
index 2e0e34a7..cd4701a6 100644
--- a/pdf-over-gui/src/main/resources/scripts/pdf-over_mac.sh
+++ b/pdf-over-gui/src/main/resources/scripts/pdf-over_mac.sh
@@ -1,4 +1,4 @@
#!/bin/sh
BASEDIR=$(cd "$(dirname "$0")"; pwd)
export LC_CTYPE="UTF-8"
-exec $BASEDIR/jre/${bundled-jre.nameInArchive}/bin/java -XstartOnFirstThread -cp "$BASEDIR/lib/*" at.asit.pdfover.gui.Main "$@" &
+exec $BASEDIR/jre/bin/java -XstartOnFirstThread -cp "$BASEDIR/lib/*" at.asit.pdfover.gui.Main "$@" &
diff --git a/pdf-over-gui/src/main/resources/scripts/postinstall_mac.sh b/pdf-over-gui/src/main/resources/scripts/postinstall_mac.sh
deleted file mode 100644
index 0b020ea3..00000000
--- a/pdf-over-gui/src/main/resources/scripts/postinstall_mac.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-SCRIPTDIR=$(cd "$(dirname "$0")"; pwd)
-BASEDIR=$(cd "$(dirname "$0")/.."; pwd)
-export LC_CTYPE="UTF-8"
-cd "$SCRIPTDIR"
-chmod a+x pdf-over_mac.sh
-cd "$BASEDIR"
-if [ -d "$BASEDIR.app" ]; then
- osacompile -e "do shell script \"$SCRIPTDIR/pdf-over_mac.sh\"" -x -o PDF-Over.app
- cp -f icons/icon.icns PDF-Over.app/Contents/Resources/applet.icns
-else
- osacompile -e "do shell script \"$BASEDIR.app/Contents/scripts/pdf-over_mac.sh\"" -x -o "$BASEDIR.app"
- cp -f icons/icon.icns "$BASEDIR.app"/Contents/Resources/applet.icns
- mv "$BASEDIR"/* "$BASEDIR.app"/Contents/
- rmdir "$BASEDIR"
- ln -s "$BASEDIR.app" "$BASEDIR"
-fi