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,