From 54404b7c9ef92075fdc8df184cf17ac335586937 Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Mon, 26 Jun 2017 13:41:33 +0200 Subject: [PATCH] windows paths for snapshot generation, #28492 --- build/gulpfile.vscode.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build/gulpfile.vscode.js b/build/gulpfile.vscode.js index 02036341e3d87..37be4c5ae0694 100644 --- a/build/gulpfile.vscode.js +++ b/build/gulpfile.vscode.js @@ -378,21 +378,22 @@ function snapshotTask(platform, arch) { const destination = path.join(path.dirname(root), 'VSCode') + (platform ? '-' + platform : '') + (arch ? '-' + arch : ''); const command = path.join(process.cwd(), 'node_modules/.bin/mksnapshot'); + let loaderInputFilepath; let startupBlobFilepath; if (platform === 'darwin') { + loaderInputFilepath = fs.readFileSync(path.join(destination, 'Code - OSS.app/Contents/Resources/app/out/vs/loader.js')); startupBlobFilepath = path.join(destination, 'Code - OSS.app/Contents/Frameworks/Electron Framework.framework/Resources/snapshot_blob.bin') } else if (platform === 'windows') { + loaderInputFilepath = fs.readFileSync(path.join(destination, 'resources/app/out/vs/loader.js')); startupBlobFilepath = path.join(destination, 'snapshot_blob.bin') - // TODO - return () => { }; } else if (platform === 'linux') { // TODO return () => { }; } return () => { - const inputFile = fs.readFileSync(path.join(destination, 'Code - OSS.app/Contents/Resources/app/out/vs/loader.js')); + const inputFile = fs.readFileSync(loaderInputFilepath); const wrappedInputFile = ` var Monaco_Loader_Init; (function() {