修复一些兼容性问题

This commit is contained in:
2024-07-30 12:44:25 +08:00
parent cd2e804407
commit 222b5f10a6
2 changed files with 5 additions and 5 deletions

View File

@@ -4,10 +4,6 @@ cd $(dirname $0)
SHELL_DIR=$(dirname $(realpath $0))
runtime_path=/opt/deepinwine/runtime-i386
if [[ -d $SHELL_DIR/../../runtime-i386 ]]; then
# 如果该 helper 下含有 runtime-i386,则直接使用相对路径的
runtime_path=$SHELL_DIR/../../runtime-i386
fi
echo $runtime_path
if [ -f "$runtime_path/init_runtime.sh" ];then
source "$runtime_path/init_runtime.sh"

View File

@@ -178,7 +178,11 @@ DisableWrite()
########如果有该文件夹则删除,然后再创建一个不允许写入的
is_autostart()
{
AUTOSTART="$SHELL_DIR/autostart"
AUTOSTART="/opt/deepinwine/tools/autostart"
if [[ -f "$SHELL_DIR/autostart" ]]; then
# 如果打包时自带 autostart则使用自带的
AUTOSTART="$SHELL_DIR/autostart"
fi
if [ -f "$AUTOSTART.all" ]&&[ -f "/opt/apps/$1/files/run.sh" ];then
return 0
fi