Skip to content

Commit 54404b7

Browse files
committed
windows paths for snapshot generation, microsoft#28492
1 parent b5ae943 commit 54404b7

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

build/gulpfile.vscode.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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() {

0 commit comments

Comments
 (0)