Browse Source

fix: comment out version assignment in config preparation

- Commented out the version assignment in the prepareUpdatedConfig function within the config.go file to prevent hardcoding of the version number.
- This change allows for more dynamic version handling in the configuration process, aligning with recent updates in the installation scripts that utilize the latest release tag for versioning.
pull/122/head v0.0.35
煎饼果子卷鲨鱼辣椒 5 months ago
parent
commit
12468bc363
  1. 2
      internal/config/config.go
  2. 7
      scripts/install.ps1

2
internal/config/config.go

@ -91,7 +91,7 @@ func (m *Manager) prepareUpdatedConfig(config *StorageConfig) map[string]interfa
originalFile["telemetry.machineId"] = config.TelemetryMachineId
originalFile["telemetry.devDeviceId"] = config.TelemetryDevDeviceId
originalFile["lastModified"] = time.Now().UTC().Format(time.RFC3339)
originalFile["version"] = "1.0.1"
// originalFile["version"] = "1.0.1"
return originalFile
}

7
scripts/install.ps1

@ -102,10 +102,11 @@ function Install-CursorModifier {
Write-Host "Found latest release: $($latestRelease.tag_name)" -ForegroundColor Cyan
# Look for Windows binary with our architecture
$version = $latestRelease.tag_name.TrimStart('v')
Write-Host "Version: $version" -ForegroundColor Cyan
$possibleNames = @(
"cursor-id-modifier_$($latestRelease.tag_name.TrimStart('v'))_windows_x86_64.exe",
"cursor-id-modifier_$($latestRelease.tag_name.TrimStart('v'))_windows_$($arch).exe",
"cursor-id-modifier_windows_$($arch).exe"
"cursor-id-modifier_${version}_windows_x86_64.exe",
"cursor-id-modifier_${version}_windows_$($arch).exe"
)
$asset = $null

Loading…
Cancel
Save