Skip to content

Commit

Permalink
windows paths for snapshot generation, #28492
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Jun 26, 2017
1 parent b5ae943 commit 54404b7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build/gulpfile.vscode.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 54404b7

Please sign in to comment.