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:
J3vb
2026-04-03 12:27:33 +02:00
parent 998e06d947
commit 0b1d178d31
2 changed files with 7 additions and 1 deletions
+5 -1
View File
@@ -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)
}