diff --git a/spark-dwine-helper/s-wine-helper/deepinwine/tools/spark_run_v4.sh b/spark-dwine-helper/s-wine-helper/deepinwine/tools/spark_run_v4.sh index 90dafff..a7e421d 100755 --- a/spark-dwine-helper/s-wine-helper/deepinwine/tools/spark_run_v4.sh +++ b/spark-dwine-helper/s-wine-helper/deepinwine/tools/spark_run_v4.sh @@ -101,7 +101,7 @@ FixLink() ln -s -f / z: ln -s -f $HOME y: cd $CUR_DIR - ls -l "${WINEPREFIX}/dosdevices" + #ls -l "${WINEPREFIX}/dosdevices" fi } ###########会在应用启动和解压时执行,驱动器绑定 @@ -211,6 +211,10 @@ CallApp() { FixLink debug_log "CallApp $BOTTLENAME arg count $#: $*" + if [ -f "/opt/apps/${DEB_PACKAGE_NAME}/files/pre_run.sh" ];then + source "/opt/apps/${DEB_PACKAGE_NAME}/files/pre_run.sh" + CallPreRun "$@" + fi APP_CONFIG_PATH="/opt/deepinwine/tools/spark_run_v4_app_configs/${BOTTLENAME}.sh" @@ -262,6 +266,12 @@ UpdateApp() if [ -d "${WINEPREFIX}.tmpdir" ]; then rm -rf "${WINEPREFIX}.tmpdir" fi + if [ -f "/opt/apps/${DEB_PACKAGE_NAME}/files/pre_update.sh" ];then + source "/opt/apps/${DEB_PACKAGE_NAME}/files/pre_update.sh" + CallPreUpdate + return + fi + case $BOTTLENAME in "Deepin-Intelligent" | "Deepin-QQ" | "Deepin-TIM" | "Deepin-WeChat" | "Deepin-WXWork" | "Deepin-Dding" | "Wine-QQ" | "Spark-QQ" | "Spark-weixin")