#!/bin/sh
# postinst script for APPLICATION_PACKAGE (jpackage's template, plus the wisp-cli command)
set -e

package_type=deb
LAUNCHER_AS_SERVICE_SCRIPTS

case "$1" in
    configure)
DESKTOP_COMMANDS_INSTALL
LAUNCHER_AS_SERVICE_COMMANDS_INSTALL
        ln -sf /opt/APPLICATION_PACKAGE/bin/wisp-cli /usr/bin/wisp-cli
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

exit 0
