post_install() {
	echo ""
	echo "==> Dispatch (base) has been installed."
	echo "    Application files: /opt/dispatch"
	echo "    Config:"
	echo "      /etc/dispatch/dispatch-api.conf"
	echo "      /etc/dispatch/dispatch-frontend.conf"
	echo ""
	echo "    Run manually:"
	echo "      dispatch-api          # backend (port 18390 by default)"
	echo "      dispatch-frontend     # static frontend (port 18391 by default)"
	echo ""
	echo "    To run as a service, install one of:"
	echo "      pacman -S dispatch-systemd   # systemd user services"
	echo "      pacman -S dispatch-s6        # s6 services (Artix)"
	echo ""
	echo "    For the Electron desktop wrapper:"
	echo "      pacman -S dispatch-electron"
	echo ""
}

post_upgrade() {
	echo ""
	echo "==> Dispatch (base) upgraded."
	echo "    If you use dispatch-systemd, restart the units:"
	echo "      systemctl --user restart dispatch-api dispatch-frontend"
	echo "    If you use dispatch-s6, restart the services:"
	echo "      s6-svc -r /run/service/dispatch-api"
	echo "      s6-svc -r /run/service/dispatch-frontend"
	echo ""
}
