mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-21 12:34:32 +02:00
Remove unnecessary version checking now that multiple versions have been released
This commit is contained in:
parent
a2d8a1065b
commit
fbe8e777a4
@ -99,14 +99,7 @@ func assertValidUpdate(updateInfo shared.UpdateInfo) error {
|
|||||||
updateInfo.DarwinArm64Url,
|
updateInfo.DarwinArm64Url,
|
||||||
updateInfo.DarwinArm64UnsignedUrl,
|
updateInfo.DarwinArm64UnsignedUrl,
|
||||||
updateInfo.DarwinArm64AttestationUrl,
|
updateInfo.DarwinArm64AttestationUrl,
|
||||||
}
|
fmt.Sprintf("https://github.com/ddworken/hishtory/releases/download/%s/hishtory-release-validation-completed", updateInfo.Version),
|
||||||
// TODO: Delete this version checking logic once v0.251 has been released
|
|
||||||
pv, err := shared.ParseVersionString(updateInfo.Version)
|
|
||||||
if err != nil {
|
|
||||||
return fmt.Errorf("failed to parse version string: %w", err)
|
|
||||||
}
|
|
||||||
if pv.GreaterThan(shared.ParsedVersion{MajorVersion: 0, MinorVersion: 246}) {
|
|
||||||
urls = append(urls, fmt.Sprintf("https://github.com/ddworken/hishtory/releases/download/%s/hishtory-release-validation-completed", updateInfo.Version))
|
|
||||||
}
|
}
|
||||||
for _, url := range urls {
|
for _, url := range urls {
|
||||||
resp, err := http.Get(url)
|
resp, err := http.Get(url)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user