mirror of
https://github.com/yuaotian/go-cursor-help.git
synced 2025-06-08 04:22:06 +08:00
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:
parent
8f52929e59
commit
12468bc363
@ -91,7 +91,7 @@ func (m *Manager) prepareUpdatedConfig(config *StorageConfig) map[string]interfa
|
|||||||
originalFile["telemetry.machineId"] = config.TelemetryMachineId
|
originalFile["telemetry.machineId"] = config.TelemetryMachineId
|
||||||
originalFile["telemetry.devDeviceId"] = config.TelemetryDevDeviceId
|
originalFile["telemetry.devDeviceId"] = config.TelemetryDevDeviceId
|
||||||
originalFile["lastModified"] = time.Now().UTC().Format(time.RFC3339)
|
originalFile["lastModified"] = time.Now().UTC().Format(time.RFC3339)
|
||||||
originalFile["version"] = "1.0.1"
|
// originalFile["version"] = "1.0.1"
|
||||||
|
|
||||||
return originalFile
|
return originalFile
|
||||||
}
|
}
|
||||||
|
@ -102,10 +102,11 @@ function Install-CursorModifier {
|
|||||||
Write-Host "Found latest release: $($latestRelease.tag_name)" -ForegroundColor Cyan
|
Write-Host "Found latest release: $($latestRelease.tag_name)" -ForegroundColor Cyan
|
||||||
|
|
||||||
# Look for Windows binary with our architecture
|
# Look for Windows binary with our architecture
|
||||||
|
$version = $latestRelease.tag_name.TrimStart('v')
|
||||||
|
Write-Host "Version: $version" -ForegroundColor Cyan
|
||||||
$possibleNames = @(
|
$possibleNames = @(
|
||||||
"cursor-id-modifier_$($latestRelease.tag_name.TrimStart('v'))_windows_x86_64.exe",
|
"cursor-id-modifier_${version}_windows_x86_64.exe",
|
||||||
"cursor-id-modifier_$($latestRelease.tag_name.TrimStart('v'))_windows_$($arch).exe",
|
"cursor-id-modifier_${version}_windows_$($arch).exe"
|
||||||
"cursor-id-modifier_windows_$($arch).exe"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
$asset = $null
|
$asset = $null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user