mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-08-06 08:13:56 +08:00
add: 龙芯禁用GPU
This commit is contained in:
+8
-1
@@ -29,6 +29,13 @@ if grep -q "ID=aosc" /etc/os-release; then
|
||||
ARGS="$ARGS --no-spark"
|
||||
fi
|
||||
|
||||
# 检查龙芯架构,添加 --disable-gpu
|
||||
ARCH=$(uname -m)
|
||||
if [ "$ARCH" = "loongarch64" ] || [ "$ARCH" = "loong64" ]; then
|
||||
echo "检测到龙芯架构 ($ARCH)"
|
||||
ARGS="$ARGS --disable-gpu"
|
||||
fi
|
||||
|
||||
# 注意:已移除原先针对 arm64 + wayland 添加 --disable-gpu 的逻辑,
|
||||
# 现在 arm64 设备无论是否使用 wayland 均不再添加此参数。
|
||||
|
||||
@@ -48,4 +55,4 @@ if [ $exit_code -ne 0 ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
exit $exit_code
|
||||
exit $exit_code
|
||||
Reference in New Issue
Block a user