SnowLuma v2.4.2 source snapshot
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
Publish MCP to npm / Build, test, and publish MCP (push) Waiting to run
Publish SDK to npm / Build, test, and publish SDK (push) Waiting to run
Sync action catalog to docs / sync (push) Waiting to run
Publish UI to npm / Build and publish UI (push) Waiting to run
Build and Release / preflight (push) Waiting to run
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
Publish MCP to npm / Build, test, and publish MCP (push) Waiting to run
Publish SDK to npm / Build, test, and publish SDK (push) Waiting to run
Sync action catalog to docs / sync (push) Waiting to run
Publish UI to npm / Build and publish UI (push) Waiting to run
Build and Release / preflight (push) Waiting to run
This commit is contained in:
commit
fa9c73363d
1367 files changed
+355735
No files matched your search
@@ -0,0 +1,37 @@
|
||||
import { mkdir, writeFile } from 'node:fs/promises';
|
||||
import path from 'node:path';
|
||||
import type { ReleaseManifest } from '../../src/update/files';
|
||||
|
||||
export async function releaseFixture(
|
||||
root: string,
|
||||
version: string,
|
||||
target = 'win32-x64',
|
||||
chunk = 'chunk.mjs',
|
||||
): Promise<ReleaseManifest> {
|
||||
const entries = [
|
||||
'index.mjs',
|
||||
'app.mjs',
|
||||
chunk,
|
||||
'native',
|
||||
'client',
|
||||
'package.json',
|
||||
'release.json',
|
||||
'EULA.md',
|
||||
'PRIVACY.md',
|
||||
'check-node-version.cjs',
|
||||
target.startsWith('win32') ? 'launcher.bat' : 'launcher.sh',
|
||||
];
|
||||
const manifest = { version, target, entries };
|
||||
await mkdir(path.join(root, 'native'), { recursive: true });
|
||||
await mkdir(path.join(root, 'client'), { recursive: true });
|
||||
|
||||
for (const file of entries.filter((entry) => !['native', 'client'].includes(entry))) {
|
||||
await writeFile(path.join(root, file), version);
|
||||
}
|
||||
|
||||
await writeFile(path.join(root, 'native', 'binding.node'), version);
|
||||
await writeFile(path.join(root, 'client', 'index.html'), version);
|
||||
await writeFile(path.join(root, 'package.json'), JSON.stringify({ version }));
|
||||
await writeFile(path.join(root, 'release.json'), JSON.stringify(manifest));
|
||||
return manifest;
|
||||
}
|
||||
Reference in new issue
Block a user