fix: ensure unique binary names for all platforms

This commit is contained in:
dacrab
2024-12-27 13:44:43 +02:00
parent 1f1f4144bb
commit b3e748554f
2 changed files with 4 additions and 4 deletions

View File

@@ -80,7 +80,7 @@ function Install-CursorModifier {
# Get latest release
try {
$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
if (!$downloadUrl) {