feat(companion): include checksums in release bundle artifacts

This commit is contained in:
William Valentin
2026-02-26 18:59:44 -08:00
parent 484247e1c1
commit bbec292434
10 changed files with 49 additions and 15 deletions
+4
View File
@@ -48,6 +48,7 @@ describe('writeCompanionReleaseBundle', () => {
const manifestRaw = await readFile(result.manifestPath, 'utf8');
const launcherRaw = await readFile(result.launcherPath, 'utf8');
const readmeRaw = await readFile(result.readmePath, 'utf8');
const checksumsRaw = await readFile(result.checksumsPath, 'utf8');
const launcherStat = await stat(result.launcherPath);
expect(JSON.parse(manifestRaw)).toMatchObject({
@@ -58,6 +59,9 @@ describe('writeCompanionReleaseBundle', () => {
expect(launcherRaw).toContain('--push-token');
expect(launcherRaw).toContain('--latitude');
expect(readmeRaw).toContain('Flynn Companion Release Bundle');
expect(checksumsRaw).toContain('companion.bootstrap.json');
expect(checksumsRaw).toContain('run-companion.sh');
expect(checksumsRaw).toContain('README.md');
expect((launcherStat.mode & 0o111) !== 0).toBe(true);
await rm(tempDir, { recursive: true, force: true });