Skip to content

Commit a2d834f

Browse files
重新添加龙架构判断
1 parent 8590d5c commit a2d834f

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

src/BD.WTTS.Client.Tools.Publish/Commands/IDotNetPublishCommand.cs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,9 +1126,19 @@ static void SetPublishCommandArgumentList(
11261126
argumentList.Add("-f");
11271127
argumentList.Add(arg.Framework);
11281128

1129-
// 发布针对给定运行时的应用程序。 有关运行时标识符 (RID) 的列表,请参阅 RID 目录。
1130-
argumentList.Add("-r");
1131-
argumentList.Add(arg.RuntimeIdentifier);
1129+
if (arg.Architecture.HasValue && (Architecture.LoongArch64 | Architecture.RiscV64).HasFlag(arg.Architecture.Value))
1130+
{
1131+
argumentList.Add($"--arch");
1132+
argumentList.Add(ArchToString(arg.Architecture.Value));
1133+
argumentList.Add($"--os");
1134+
argumentList.Add("linux");
1135+
}
1136+
else
1137+
{
1138+
// 发布针对给定运行时的应用程序。 有关运行时标识符 (RID) 的列表,请参阅 RID 目录。
1139+
argumentList.Add("-r");
1140+
argumentList.Add(arg.RuntimeIdentifier);
1141+
}
11321142

11331143
argumentList.Add("-v");
11341144
argumentList.Add("q");

0 commit comments

Comments
 (0)