From 32908a528c3cbace23a34575c93e21064f7b7ec0 Mon Sep 17 00:00:00 2001 From: Philip Peterson Date: Thu, 24 Apr 2025 20:34:11 -0700 Subject: [PATCH] wip --- bin/mk-snapshot.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/bin/mk-snapshot.js b/bin/mk-snapshot.js index 2b5faefc..312a0bef 100644 --- a/bin/mk-snapshot.js +++ b/bin/mk-snapshot.js @@ -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,