From 63b63d7cfac97d80feec958710118f2edba5a40e Mon Sep 17 00:00:00 2001 From: shenmo Date: Fri, 10 Jun 2022 11:43:44 +0000 Subject: [PATCH] update spark-dwine-helper/pkg/opt/deepinwine/tools/spark_run_v4.sh. --- .../pkg/opt/deepinwine/tools/spark_run_v4.sh | 40 +------------------ 1 file changed, 1 insertion(+), 39 deletions(-) diff --git a/spark-dwine-helper/pkg/opt/deepinwine/tools/spark_run_v4.sh b/spark-dwine-helper/pkg/opt/deepinwine/tools/spark_run_v4.sh index 089b5bf..47f5598 100755 --- a/spark-dwine-helper/pkg/opt/deepinwine/tools/spark_run_v4.sh +++ b/spark-dwine-helper/pkg/opt/deepinwine/tools/spark_run_v4.sh @@ -8,8 +8,6 @@ # # Modifier: shenmo # -# diff: Now will run set-dwine-scale.sh in stage CallProcess before CallApp -# Deleted Deepin-* to simplify the script # WINEPREFIX="$HOME/.deepinwine/@public_bottle_name@" APPDIR="/opt/deepinwine/apps/@public_bottle_name@" @@ -35,32 +33,7 @@ if [ $SPECIFY_SHELL_DIR ]; then SHELL_DIR=$SPECIFY_SHELL_DIR fi -UsePublicDir() -{ - if [ -z "$USE_PUBLIC_DIR" ]; then - echo "Don't use public dir" - return 1 - fi - if [ ! -d "$PUBLIC_DIR" ];then - echo "Not found $PUBLIC_DIR" - return 1 - fi - if [ ! -r "$PUBLIC_DIR" ];then - echo "Can't read for $PUBLIC_DIR" - return 1 - fi - if [ ! -w "$PUBLIC_DIR" ];then - echo "Can't write for $PUBLIC_DIR" - return 1 - fi - if [ ! -x "$PUBLIC_DIR" ];then - echo "Can't excute for $PUBLIC_DIR" - return 1 - fi - return 0 -} -########关于公共文件夹,暂时意义不明 _DeleteRegistry() { @@ -500,10 +473,6 @@ DeployApp() { ExtractApp "$WINEPREFIX" - if UsePublicDir;then - chgrp -R users "$WINEPREFIX" - chmod -R 0775 "$WINEPREFIX" - fi echo "$APPVER" > "$WINEPREFIX/PACKAGE_VERSION" @@ -542,10 +511,6 @@ UpdateApp() ExtractApp "${WINEPREFIX}.tmpdir" $SHELL_DIR/updater -s "${WINEPREFIX}.tmpdir" -c "${WINEPREFIX}" -v - if UsePublicDir;then - chgrp -R users "$WINEPREFIX" - chmod -R 0775 "$WINEPREFIX" - fi rm -rf "${WINEPREFIX}.tmpdir" echo "$APPVER" > "$WINEPREFIX/PACKAGE_VERSION" @@ -614,9 +579,6 @@ fi BOTTLENAME="$1" WINEPREFIX="$HOME/.deepinwine/$1" -if UsePublicDir;then - WINEPREFIX="$PUBLIC_DIR/$1" -fi APPDIR="/opt/apps/${DEB_PACKAGE_NAME}/files" if [ -f "$APPDIR/files.md5sum" ];then @@ -662,4 +624,4 @@ case $4 in exit 1 ;; esac -exit 0 +exit 0 \ No newline at end of file