This commit is contained in:
Philip Peterson 2025-04-24 20:34:11 -07:00
parent 1671ca023b
commit 32908a528c
No known key found for this signature in database
GPG key ID: 354311183FC6519B

8
bin/mk-snapshot.js vendored
View file

@ -49,17 +49,11 @@ async function main() {
const startupBlobPath = path.join(outputBlobPath, 'snapshot_blob.bin');
console.log(`Generating startup blob in "${outputBlobPath}"`);
console.log(childProcess.execSync(
'ls ' + path.resolve(__dirname, '..', 'node_modules')
).toString());
console.log(childProcess.execSync(
'ls ' + path.resolve(__dirname, '..', 'node_modules', 'electron-mksnapshot')
).toString());
console.log(childProcess.execSync(
'ls ' + path.resolve(__dirname, '..', 'node_modules', 'electron-mksnapshot', 'bin')
).toString());
const res = childProcess.execFileSync(
path.resolve(__dirname, '..', 'node_modules', 'electron-mksnapshot', 'bin', 'mksnapshot' + (process.platform === 'win32' ? '.cmd' : '')),
path.resolve(__dirname, '..', 'node_modules', 'electron-mksnapshot', 'bin', 'mksnapshot' + (process.platform === 'win32' ? '.exe' : '')),
[
'--startup-src=' + snapshotScriptPath,
'--startup-blob=' + startupBlobPath,