mirror of
https://github.com/yuaotian/go-cursor-help.git
synced 2025-06-08 12:32:06 +08:00
fix: ensure unique binary names for all platforms
This commit is contained in:
parent
1f1f4144bb
commit
b3e748554f
@ -30,14 +30,14 @@ archives:
|
|||||||
- id: binary
|
- id: binary
|
||||||
format: binary
|
format: binary
|
||||||
name_template: >-
|
name_template: >-
|
||||||
{{ .Binary }}
|
{{ .Binary }}_
|
||||||
{{- if eq .Os "windows" }}.exe{{ else }}_
|
|
||||||
{{- .Os }}_
|
{{- .Os }}_
|
||||||
{{- if eq .Arch "amd64" }}x64{{ end }}
|
{{- if eq .Arch "amd64" }}x64{{ end }}
|
||||||
{{- if eq .Arch "386" }}x86{{ end }}
|
{{- if eq .Arch "386" }}x86{{ end }}
|
||||||
{{- if eq .Arch "arm64" }}arm64{{ end }}
|
{{- if eq .Arch "arm64" }}arm64{{ end }}
|
||||||
{{- if and (eq .Os "darwin") (eq .Arch "amd64") }}_intel{{ end }}
|
{{- if and (eq .Os "darwin") (eq .Arch "amd64") }}_intel{{ end }}
|
||||||
{{- if and (eq .Os "darwin") (eq .Arch "arm64") }}_apple_silicon{{ end }}{{ end }}
|
{{- if and (eq .Os "darwin") (eq .Arch "arm64") }}_apple_silicon{{ end }}
|
||||||
|
{{- if eq .Os "windows" }}.exe{{ end }}
|
||||||
|
|
||||||
checksum:
|
checksum:
|
||||||
name_template: 'checksums.txt'
|
name_template: 'checksums.txt'
|
||||||
|
@ -80,7 +80,7 @@ function Install-CursorModifier {
|
|||||||
# Get latest release
|
# Get latest release
|
||||||
try {
|
try {
|
||||||
$latestRelease = Invoke-RestMethod -Uri "https://api.github.com/repos/dacrab/go-cursor-help/releases/latest"
|
$latestRelease = Invoke-RestMethod -Uri "https://api.github.com/repos/dacrab/go-cursor-help/releases/latest"
|
||||||
$binaryName = "cursor-id-modifier.exe"
|
$binaryName = "cursor-id-modifier_windows_$arch.exe"
|
||||||
$downloadUrl = $latestRelease.assets | Where-Object { $_.name -eq $binaryName } | Select-Object -ExpandProperty browser_download_url
|
$downloadUrl = $latestRelease.assets | Where-Object { $_.name -eq $binaryName } | Select-Object -ExpandProperty browser_download_url
|
||||||
|
|
||||||
if (!$downloadUrl) {
|
if (!$downloadUrl) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user