use sha1 instead of sha256

This commit is contained in:
Tricked
2022-06-15 21:17:55 +02:00
committed by unilock
parent 5c07741447
commit faec4f4738
2 changed files with 11 additions and 6 deletions

View File

@@ -80,7 +80,7 @@ func (u ghUpdater) DoUpdate(mods []*core.Mod, cachedState []interface{}) error {
}
}
hash, error := file.getSha256()
hash, error := file.getSha1()
if error != nil || hash == "" {
return errors.New("file doesn't have a hash")
}
@@ -88,7 +88,7 @@ func (u ghUpdater) DoUpdate(mods []*core.Mod, cachedState []interface{}) error {
mod.FileName = file.Name
mod.Download = core.ModDownload{
URL: file.BrowserDownloadURL,
HashFormat: "sha256",
HashFormat: "sha1",
Hash: hash,
}
mod.Update["github"]["version"] = version.ID