File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -322,10 +322,20 @@ module.exports = function(packagedAppPath) {
322
322
323
323
const snapshotBinaries = [ 'v8_context_snapshot.bin' , 'snapshot_blob.bin' ] ;
324
324
for ( let snapshotBinary of snapshotBinaries ) {
325
- const destinationPath = path . join (
325
+ let destinationPath = path . join (
326
326
startupBlobDestinationPath ,
327
327
snapshotBinary
328
328
) ;
329
+ if (
330
+ process . platform === 'darwin' &&
331
+ snapshotBinary === 'v8_context_snapshot.bin'
332
+ ) {
333
+ // TODO: check if we're building for arm64 and use the arm64 version of the binary
334
+ destinationPath = path . join (
335
+ startupBlobDestinationPath ,
336
+ 'v8_context_snapshot.x86_64.bin'
337
+ ) ;
338
+ }
329
339
console . log ( `Moving generated startup blob into "${ destinationPath } "` ) ;
330
340
try {
331
341
fs . unlinkSync ( destinationPath ) ;
You can’t perform that action at this time.
0 commit comments