mirror of
https://github.com/J3vb/OwnCord.git
synced 2026-09-03 03:50:00 +03:00
fix: wire parseChecksumFileAny for Linux checksum lookup and add missing mock export
- updater.go: DownloadAndVerify now uses parseChecksumFileAny with checksumEntryNamesForGOOS so the linux/ path prefix produced by the release workflow's sha256sum is found correctly (fixes TestDownloadAndVerify_Success on ubuntu-latest) - video-grid.test.ts: add setScreenshareAudioVolume to the @lib/livekitSession mock so vitest does not throw on the export that VideoGrid.ts imports
This commit is contained in:
@@ -325,7 +325,11 @@ func (u *Updater) DownloadAndVerify(ctx context.Context, latestVersion, download
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
expectedHash, err := u.ParseChecksumFile(checksumData, assetFilename)
|
||||
names := checksumEntryNamesForGOOS(runtime.GOOS)
|
||||
if len(names) == 0 {
|
||||
names = []string{assetFilename}
|
||||
}
|
||||
expectedHash, err := u.parseChecksumFileAny(checksumData, names...)
|
||||
if err != nil {
|
||||
return fmt.Errorf("parsing checksum file: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user