From 5d512c4e862aac45f795a08c0299effa2b7251bd Mon Sep 17 00:00:00 2001 From: shenmo Date: Sat, 18 Jul 2026 11:34:59 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E9=BE=99=E8=8A=AF=E7=A6=81=E7=94=A8GPU?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extras/spark-store | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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