mirror of
https://gitee.com/spark-store-project/spark-wine
synced 2025-12-18 13:01:40 +08:00
修复一些兼容性问题
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user