#!/bin/sh
# Launcher for ZG.Calc (交通事故损害赔偿计算（含交强险赔偿计算）软件).
# The real executable lives in /opt/zgcalc; it looks for templates/ and
# Assets/ next to itself, so we must NOT change the working directory.
set -e
APP=/opt/zgcalc/ZG.Calc.App
if [ ! -x "$APP" ]; then
  echo "$APP is missing or not executable. Reinstall the package:" >&2
  echo "    sudo apt-get install --reinstall /path/to/zgcalc_*.deb" >&2
  exit 127
fi
exec "$APP" "$@"
