File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -378,21 +378,22 @@ function snapshotTask(platform, arch) {
378378 const destination = path . join ( path . dirname ( root ) , 'VSCode' ) + ( platform ? '-' + platform : '' ) + ( arch ? '-' + arch : '' ) ;
379379 const command = path . join ( process . cwd ( ) , 'node_modules/.bin/mksnapshot' ) ;
380380
381+ let loaderInputFilepath ;
381382 let startupBlobFilepath ;
382383
383384 if ( platform === 'darwin' ) {
385+ loaderInputFilepath = fs . readFileSync ( path . join ( destination , 'Code - OSS.app/Contents/Resources/app/out/vs/loader.js' ) ) ;
384386 startupBlobFilepath = path . join ( destination , 'Code - OSS.app/Contents/Frameworks/Electron Framework.framework/Resources/snapshot_blob.bin' )
385387 } else if ( platform === 'windows' ) {
388+ loaderInputFilepath = fs . readFileSync ( path . join ( destination , 'resources/app/out/vs/loader.js' ) ) ;
386389 startupBlobFilepath = path . join ( destination , 'snapshot_blob.bin' )
387- // TODO
388- return ( ) => { } ;
389390 } else if ( platform === 'linux' ) {
390391 // TODO
391392 return ( ) => { } ;
392393 }
393394
394395 return ( ) => {
395- const inputFile = fs . readFileSync ( path . join ( destination , 'Code - OSS.app/Contents/Resources/app/out/vs/loader.js' ) ) ;
396+ const inputFile = fs . readFileSync ( loaderInputFilepath ) ;
396397 const wrappedInputFile = `
397398 var Monaco_Loader_Init;
398399 (function() {
You can’t perform that action at this time.
0 commit comments