diff --git a/src/Rune.csproj b/src/Rune.csproj
index b47813b..6caf745 100644
--- a/src/Rune.csproj
+++ b/src/Rune.csproj
@@ -7,7 +7,7 @@
Rune.CLI
resource\icon.ico
- 0.70.617-beta
+ 0.70.618-beta
true
x64
diff --git a/src/etc/Appx.cs b/src/etc/Appx.cs
index 208bfe4..4e65f99 100644
--- a/src/etc/Appx.cs
+++ b/src/etc/Appx.cs
@@ -29,7 +29,7 @@ public async ValueTask DownloadAsync()
.WithHeader("User-Agent", $"RuneCLI/{HelpCommand.GetVersion()}")
.GetJsonAsync();
var release = releases.First();
- var targetFile = Config.Get($"github_{_type}", "file", $"{_type}-{OS}.zip");
+ var targetFile = Config.Get($"github_{_type}", "file", $"{_type}-{OS}-{Arch}.zip");
var asset = release.Assets.FirstOrDefault(x => x.Name == targetFile);
@@ -56,7 +56,8 @@ public async ValueTask DownloadAsync()
return new FileInfo(Path.Combine(Dirs.CacheFolder.FullName, targetFile));
}
-
+ private string Arch
+ => RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant();
private string OS
{
get
@@ -65,11 +66,11 @@ private string OS
throw new NotSupportedException($"{RuntimeInformation.ProcessArchitecture} is not support.");
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
- return "win64";
+ return "win10";
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
- return "linux64";
+ return "linux";
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
- return "osx64";
+ return $"osx.10.14";
throw new NotSupportedException($"{RuntimeInformation.OSDescription} is not support.");
}
}