Skip to content

Commit

Permalink
Fix the rids to match the spec https://github.com/dotnet/runtime/blob…
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed Sep 3, 2024
1 parent 42cca58 commit 2fb638c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
8 changes: 6 additions & 2 deletions Tasks/PublishLibraryTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ public sealed class PublishLibraryTask : AsyncFrostingTask<BuildContext>
public override async Task RunAsync(BuildContext context)
{
var knownRids = new string[] {
"windows-x64",
"win-x64",
"win-x86",
"win-arm64",
"linux-x64",
"linux-arm",
"linux-arm64",
"osx",
"osx-x64",
"osx-arm64",
Expand Down Expand Up @@ -41,7 +45,7 @@ public override async Task RunAsync(BuildContext context)

var rid = "";
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
rid = "windows";
rid = "win";
else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
rid = "osx";
else
Expand Down
8 changes: 5 additions & 3 deletions Tasks/PublishPackageTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ public override async Task RunAsync(BuildContext context)
var requiredRids = context.IsUniversalBinary ?
new string[]
{
"windows-x64",
"win-x64",
"linux-x64",
"osx",
}
: new string[] {
"windows-x64",
"win-x64",
"linux-x64",
"osx-x64",
"osx-arm64"
Expand All @@ -44,7 +44,9 @@ public override async Task RunAsync(BuildContext context)
"android-arm64",
"android-arm",
"android-x86",
"android-x64"
"android-x64",
"linux-arm",
"linux-arm64",
};

// Download built artifacts
Expand Down

0 comments on commit 2fb638c

Please sign in to comment.