You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error when launching electron after copying the snapshot file
Version mismatch between V8 binary and snapshot.
V8 binary version: 10.4.132.24-electron.0
Snapshot version: 10.4.132.20-electron.0
yes - I have done ELECTRON_CUSTOM_VERSION=20.3.5 yarn install
OS: MacOS 12.6 (ARM64)
my package json
resolved to yarn.lock
Files successfully copied to app/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Resources
Scripts used to generate the snapshots
Code
constchildProcess=require('child_process')constvm=require('vm')constpath=require('path')constfs=require('fs')constelectronLink=require('electron-link')constexcludedModules={}asyncfunctionmain(){constbaseDirPath=path.resolve(__dirname,'..')console.log('Creating a linked script..')constresult=awaitelectronLink({baseDirPath: baseDirPath,mainPath: `${baseDirPath}/src/snapshot/imports.js`,cachePath: `${baseDirPath}/cache`,shouldExcludeModule: (modulePath)=>excludedModules.hasOwnProperty(modulePath)})constsnapshotScriptPath=`${baseDirPath}/cache/snapshot.js`fs.writeFileSync(snapshotScriptPath,result.snapshotScript)// Verify if we will be able to use this in `mksnapshot`vm.runInNewContext(result.snapshotScript,undefined,{filename: snapshotScriptPath,displayErrors: true})constoutputBlobPath=path.resolve(__dirname,"../cache/")console.log(`Generating startup blob in "${outputBlobPath}"`)childProcess.execFileSync(path.resolve(__dirname,'..','node_modules','.bin','mksnapshot'+(process.platform==='win32' ? '.cmd' : '')),[snapshotScriptPath,'--output_dir',outputBlobPath])}main().catch(err=>console.error(err))
The text was updated successfully, but these errors were encountered:
Error when launching electron after copying the snapshot file
yes - I have done
ELECTRON_CUSTOM_VERSION=20.3.5 yarn install
OS: MacOS 12.6 (ARM64)
my package json
resolved to yarn.lock
Files successfully copied to
app/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Resources
Scripts used to generate the snapshots
Code
The text was updated successfully, but these errors were encountered: