This repository was archived by the owner on May 27, 2021. It is now read-only.
File tree 2 files changed +7
-6
lines changed 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 7
7
<RootNamespace >Rune.CLI</RootNamespace >
8
8
<ApplicationIcon >resource\icon.ico</ApplicationIcon >
9
9
<StartupObject ></StartupObject >
10
- <Version >0.70.617 -beta</Version >
10
+ <Version >0.70.618 -beta</Version >
11
11
<AllowUnsafeBlocks >true</AllowUnsafeBlocks >
12
12
<PlatformTarget >x64</PlatformTarget >
13
13
</PropertyGroup >
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public async ValueTask<FileInfo> DownloadAsync()
29
29
. WithHeader ( "User-Agent" , $ "RuneCLI/{ HelpCommand . GetVersion ( ) } ")
30
30
. GetJsonAsync < GithubRelease [ ] > ( ) ;
31
31
var release = releases . First ( ) ;
32
- var targetFile = Config . Get ( $ "github_{ _type } ", "file" , $ "{ _type } -{ OS } .zip") ;
32
+ var targetFile = Config . Get ( $ "github_{ _type } ", "file" , $ "{ _type } -{ OS } - { Arch } .zip") ;
33
33
34
34
var asset = release . Assets . FirstOrDefault ( x => x . Name == targetFile ) ;
35
35
@@ -56,7 +56,8 @@ public async ValueTask<FileInfo> DownloadAsync()
56
56
return new FileInfo ( Path . Combine ( Dirs . CacheFolder . FullName , targetFile ) ) ;
57
57
}
58
58
59
-
59
+ private string Arch
60
+ => RuntimeInformation . ProcessArchitecture . ToString ( ) . ToLowerInvariant ( ) ;
60
61
private string OS
61
62
{
62
63
get
@@ -65,11 +66,11 @@ private string OS
65
66
throw new NotSupportedException ( $ "{ RuntimeInformation . ProcessArchitecture } is not support.") ;
66
67
67
68
if ( RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) )
68
- return "win64 " ;
69
+ return "win10 " ;
69
70
if ( RuntimeInformation . IsOSPlatform ( OSPlatform . Linux ) )
70
- return "linux64 " ;
71
+ return "linux " ;
71
72
if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) )
72
- return "osx64 ";
73
+ return $ "osx.10.14 ";
73
74
throw new NotSupportedException ( $ "{ RuntimeInformation . OSDescription } is not support.") ;
74
75
}
75
76
}
You can’t perform that action at this time.
0 commit comments