mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-08-06 10:23:57 +08:00
add: 龙芯禁用GPU
This commit is contained in:
@@ -29,6 +29,13 @@ if grep -q "ID=aosc" /etc/os-release; then
|
|||||||
ARGS="$ARGS --no-spark"
|
ARGS="$ARGS --no-spark"
|
||||||
fi
|
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 添加 --disable-gpu 的逻辑,
|
||||||
# 现在 arm64 设备无论是否使用 wayland 均不再添加此参数。
|
# 现在 arm64 设备无论是否使用 wayland 均不再添加此参数。
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user