diff --git a/extras/spark-store b/extras/spark-store index 7cf589e2..c07d6ede 100755 --- a/extras/spark-store +++ b/extras/spark-store @@ -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 \ No newline at end of file