diff --git a/src/jpackage/resources-linux/prerm b/src/jpackage/resources-linux/prerm new file mode 100644 index 0000000..9c50c51 --- /dev/null +++ b/src/jpackage/resources-linux/prerm @@ -0,0 +1,43 @@ +#!/bin/sh +# prerm script for APPLICATION_PACKAGE +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see https://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +echo $0 called with $* + +package_type=deb +#COMMON_SCRIPTS +DESKTOP_SCRIPTS +LAUNCHER_AS_SERVICE_SCRIPTS + +case "$1" in + remove|upgrade|deconfigure) + xdg-desktop-menu uninstall /opt/APPLICATION_PACKAGE/lib/APPLICATION_PACKAGE-APPLICATION_PACKAGE.desktop + DESKTOP_COMMANDS_UNINSTALL + LAUNCHER_AS_SERVICE_COMMANDS_UNINSTALL + ;; + + failed-upgrade) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +exit 0 \ No newline at end of file diff --git a/src/jpackage/resources-linux/template.desktop b/src/jpackage/resources-linux/template.desktop new file mode 100644 index 0000000..35e6164 --- /dev/null +++ b/src/jpackage/resources-linux/template.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=APPLICATION_NAME +Comment=APPLICATION_DESCRIPTION +Exec=APPLICATION_LAUNCHER +Icon=APPLICATION_ICON +Terminal=false +Type=Application +Categories=DEPLOY_BUNDLE_CATEGORY +StartupWMClass=oolite-starter-MainFrame +DESKTOP_MIMES \ No newline at end of file