NewLife/LuckyClover

feat: 龙芯 LoongArch64 改用 ASP.NET Core 运行时包(由 SDK 裁剪,体积缩小约 6 倍)

- 从龙芯官方 SDK 裁剪生成运行时包(保留 dotnet/host/shared,含 ASP.NET Core)
- 对应运行时版本:10.0.11 / 9.0.20 / 8.0.31(含 musl,8.x 仅 glibc),每包约 39MB
- 四个安装脚本与 DownloadHelper 组件清单同步切换
大石头 authored at 2026-09-19 18:46:29
fee1def
Tree
1 Parent(s) b371a40
Summary: 5 changed files with 17 additions and 17 deletions.
Modified +6 -6
Modified +3 -3
Modified +3 -3
Modified +2 -2
Modified +3 -3
Modified +6 -6
diff --git a/Installer/DownloadHelper.cs b/Installer/DownloadHelper.cs
index 82016d2..db97967 100644
--- a/Installer/DownloadHelper.cs
+++ b/Installer/DownloadHelper.cs
@@ -41,12 +41,12 @@ public class DownloadHelper
         await Check("win7/Windows6.1-KB3063858-x86.msu");
         await Check("win7/MsRootCert.zip");
 
-        // LoongArch64 由龙芯官方提供(github.com/loongson/dotnet),需转存到镜像根目录
-        await Check("dotnet-sdk-10.0.111-linux-loongarch64.tar.gz");
-        await Check("dotnet-sdk-10.0.111-linux-musl-loongarch64.tar.gz");
-        await Check("dotnet-sdk-9.0.121-linux-loongarch64.tar.gz");
-        await Check("dotnet-sdk-9.0.121-linux-musl-loongarch64.tar.gz");
-        await Check("dotnet-sdk-8.0.131-linux-loongarch64.tar.gz");
+        // LoongArch64 运行时由龙芯官方提供(由 SDK 裁剪生成,含 ASP.NET Core),需转存到镜像根目录
+        await Check("aspnetcore-runtime-10.0.11-linux-loongarch64.tar.gz");
+        await Check("aspnetcore-runtime-10.0.11-linux-musl-loongarch64.tar.gz");
+        await Check("aspnetcore-runtime-9.0.20-linux-loongarch64.tar.gz");
+        await Check("aspnetcore-runtime-9.0.20-linux-musl-loongarch64.tar.gz");
+        await Check("aspnetcore-runtime-8.0.31-linux-loongarch64.tar.gz");
         await Check($"{NetRuntime.Version10}/aspnetcore-runtime-{NetRuntime.Version10}-linux-arm64.tar.gz");
         await Check($"{NetRuntime.Version10}/aspnetcore-runtime-{NetRuntime.Version10}-linux-arm.tar.gz");
         await Check($"{NetRuntime.Version10}/aspnetcore-runtime-{NetRuntime.Version10}-linux-x64.tar.gz");
Modified +3 -3
diff --git a/Scripts/net.sh b/Scripts/net.sh
index 32f83c8..ff52d48 100644
--- a/Scripts/net.sh
+++ b/Scripts/net.sh
@@ -34,11 +34,11 @@ elif [ $arch == "riscv64" ]; then
   gzfile="dotnet-sdk-8.0.101-linux-riscv64-gcc.tar.gz"
   wget $source/dotnet/$gzfile
 elif [ $arch == "loongarch64" ]; then
-  # LoongArch64 使用龙芯官方构建(loongson/dotnet),musl 环境对应 musl 包
+  # LoongArch64 使用龙芯官方运行时(由 SDK 裁剪,含 ASP.NET Core),musl 环境对应 musl 包
   if [[ "$prefix" == *"-musl"* ]]; then
-    gzfile="dotnet-sdk-10.0.111-linux-musl-loongarch64.tar.gz"
+    gzfile="aspnetcore-runtime-10.0.11-linux-musl-loongarch64.tar.gz"
   else
-    gzfile="dotnet-sdk-10.0.111-linux-loongarch64.tar.gz"
+    gzfile="aspnetcore-runtime-10.0.11-linux-loongarch64.tar.gz"
   fi
   wget $source/dotnet/$gzfile
 else
Modified +3 -3
diff --git a/Scripts/net10.sh b/Scripts/net10.sh
index 8b5bd0f..81d5019 100644
--- a/Scripts/net10.sh
+++ b/Scripts/net10.sh
@@ -34,11 +34,11 @@ elif [ $arch == "riscv64" ]; then
   gzfile="dotnet-sdk-8.0.101-linux-riscv64-gcc.tar.gz"
   wget $source/dotnet/$gzfile
 elif [ $arch == "loongarch64" ]; then
-  # LoongArch64 使用龙芯官方构建(loongson/dotnet),musl 环境对应 musl 包
+  # LoongArch64 使用龙芯官方运行时(由 SDK 裁剪,含 ASP.NET Core),musl 环境对应 musl 包
   if [[ "$prefix" == *"-musl"* ]]; then
-    gzfile="dotnet-sdk-10.0.111-linux-musl-loongarch64.tar.gz"
+    gzfile="aspnetcore-runtime-10.0.11-linux-musl-loongarch64.tar.gz"
   else
-    gzfile="dotnet-sdk-10.0.111-linux-loongarch64.tar.gz"
+    gzfile="aspnetcore-runtime-10.0.11-linux-loongarch64.tar.gz"
   fi
   wget $source/dotnet/$gzfile
 else
Modified +2 -2
diff --git a/Scripts/net8.sh b/Scripts/net8.sh
index 61efbcd..f60f42f 100644
--- a/Scripts/net8.sh
+++ b/Scripts/net8.sh
@@ -30,8 +30,8 @@ elif [ $arch == "riscv64" ]; then
   gzfile="dotnet-sdk-8.0.101-linux-riscv64-gcc.tar.gz"
 	wget $source/dotnet/$gzfile
 elif [ $arch == "loongarch64" ]; then
-  # LoongArch64 使用龙芯官方构建(loongson/dotnet)
-  gzfile="dotnet-sdk-8.0.131-linux-loongarch64.tar.gz"
+  # LoongArch64 使用龙芯官方运行时(由 SDK 裁剪,含 ASP.NET Core)
+  gzfile="aspnetcore-runtime-8.0.31-linux-loongarch64.tar.gz"
 	wget $source/dotnet/$gzfile
 else
   gzfile="$prefix-$arch.tar.gz"
Modified +3 -3
diff --git a/Scripts/net9.sh b/Scripts/net9.sh
index dfa495d..9998a36 100644
--- a/Scripts/net9.sh
+++ b/Scripts/net9.sh
@@ -34,11 +34,11 @@ elif [ $arch == "riscv64" ]; then
   gzfile="dotnet-sdk-8.0.101-linux-riscv64-gcc.tar.gz"
   wget $source/dotnet/$gzfile
 elif [ $arch == "loongarch64" ]; then
-  # LoongArch64 使用龙芯官方构建(loongson/dotnet),musl 环境对应 musl 包
+  # LoongArch64 使用龙芯官方运行时(由 SDK 裁剪,含 ASP.NET Core),musl 环境对应 musl 包
   if [[ "$prefix" == *"-musl"* ]]; then
-    gzfile="dotnet-sdk-9.0.121-linux-musl-loongarch64.tar.gz"
+    gzfile="aspnetcore-runtime-9.0.20-linux-musl-loongarch64.tar.gz"
   else
-    gzfile="dotnet-sdk-9.0.121-linux-loongarch64.tar.gz"
+    gzfile="aspnetcore-runtime-9.0.20-linux-loongarch64.tar.gz"
   fi
   wget $source/dotnet/$gzfile
 else