feat(companion): include checksums in release bundle artifacts
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user