summarylogtreecommitdiffstats
path: root/deepin-wine-mailmaster.sh
blob: 131babe04bfb95fcae550aafb1f659c224b10211 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
set -o pipefail
BOTTLENAME=Deepin-@bottlename@
APPVER=@appver@
EXEC_PATH="c:/Program Files (x86)/Netease/@dirname@-bin/@runname@.exe"
START_SHELL_PATH="/opt/deepinwine/tools/run_v4.sh"
ARCHIVE_FILE_DIR="/opt/apps/$DEB_PACKAGE_NAME/files"
export MIME_TYPE=""
export DEB_PACKAGE_NAME=@appname@
export WINEPREDLL="$ARCHIVE_FILE_DIR/dlls"
export APPRUN_CMD="deepin-wine8-stable"
if [ -n "${EXEC_PATH}" ];then
    exec "${START_SHELL_PATH}" "${BOTTLENAME}" "${APPVER}" "${EXEC_PATH}" "$@" || exit $?
else
    exec "${START_SHELL_PATH}" "${BOTTLENAME}" "${APPVER}" "uninstaller.exe" "$@" || exit $?
fi