File tree Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -5629,31 +5629,31 @@ func Test_DownloadViddy(t *testing.T) {
5629
5629
os : "darwin" ,
5630
5630
arch : arch64bit ,
5631
5631
version : version ,
5632
- url : "https://github.com/sachaos/viddy/releases/download/v0.3.6/viddy_Darwin_x86_64 .tar.gz" ,
5632
+ url : "https://github.com/sachaos/viddy/releases/download/v0.3.6/viddy-v0.3.6-macos-x86_64 .tar.gz" ,
5633
5633
},
5634
5634
{
5635
5635
os : "darwin" ,
5636
5636
arch : archDarwinARM64 ,
5637
5637
version : version ,
5638
- url : "https://github.com/sachaos/viddy/releases/download/v0.3.6/viddy_Darwin_arm64 .tar.gz" ,
5638
+ url : "https://github.com/sachaos/viddy/releases/download/v0.3.6/viddy-v0.3.6-macos-arm64 .tar.gz" ,
5639
5639
},
5640
5640
{
5641
5641
os : "linux" ,
5642
5642
arch : arch64bit ,
5643
5643
version : version ,
5644
- url : "https://github.com/sachaos/viddy/releases/download/v0.3.6/viddy_Linux_x86_64 .tar.gz" ,
5644
+ url : "https://github.com/sachaos/viddy/releases/download/v0.3.6/viddy-v0.3.6-linux-x86_64 .tar.gz" ,
5645
5645
},
5646
5646
{
5647
5647
os : "linux" ,
5648
5648
arch : archARM64 ,
5649
5649
version : version ,
5650
- url : "https://github.com/sachaos/viddy/releases/download/v0.3.6/viddy_Linux_arm64 .tar.gz" ,
5650
+ url : "https://github.com/sachaos/viddy/releases/download/v0.3.6/viddy-v0.3.6-linux-arm64 .tar.gz" ,
5651
5651
},
5652
5652
{
5653
5653
os : "ming" ,
5654
5654
arch : arch64bit ,
5655
5655
version : version ,
5656
- url : "https://github.com/sachaos/viddy/releases/download/v0.3.6/viddy_Windows_x86_64 .tar.gz" ,
5656
+ url : "https://github.com/sachaos/viddy/releases/download/v0.3.6/viddy-v0.3.6-windows-x86_64 .tar.gz" ,
5657
5657
},
5658
5658
}
5659
5659
Original file line number Diff line number Diff line change @@ -3167,16 +3167,14 @@ https://github.com/{{.Owner}}/{{.Repo}}/releases/download/{{.Version}}/{{.Name}}
3167
3167
{{$arch = "arm64"}}
3168
3168
{{- end -}}
3169
3169
3170
- {{$osStr := "" }}
3170
+ {{$osStr := .OS }}
3171
3171
{{ if HasPrefix .OS "ming" -}}
3172
- {{$osStr = "Windows"}}
3173
- {{- else if eq .OS "linux" -}}
3174
- {{$osStr = "Linux"}}
3172
+ {{$osStr = "windows"}}
3175
3173
{{- else if eq .OS "darwin" -}}
3176
- {{$osStr = "Darwin "}}
3174
+ {{$osStr = "macos "}}
3177
3175
{{- end -}}
3178
3176
3179
- {{.Name}}_{{ $osStr}}_ {{$arch}}.{{$ext}}
3177
+ {{.Name}}-{{.Version}}-{{ $osStr}}- {{$arch}}.{{$ext}}
3180
3178
` ,
3181
3179
})
3182
3180
You can’t perform that action at this time.
0 commit comments