runtime-i386的优先级选择

This commit is contained in:
2024-07-16 22:13:13 +08:00
parent 0a203effd1
commit cd1d78b64c

View File

@@ -3,7 +3,11 @@
cd $(dirname $0)
SHELL_DIR=$(dirname $(realpath $0))
runtime_path=$SHELL_DIR/../../runtime-i386
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"