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.
This commit is contained in:
煎饼果子卷鲨鱼辣椒 2024-12-30 20:06:03 +08:00
parent 8f52929e59
commit 12468bc363
2 changed files with 5 additions and 4 deletions

View File

@ -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
}

View File

@ -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