Skip to content

Commit

Permalink
add support for snapshots on windows, #28492
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Jun 26, 2017
1 parent 54404b7 commit ca59971
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions build/gulpfile.vscode.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,17 +376,20 @@ gulp.task('vscode-linux-arm-min', ['minify-vscode', 'clean-vscode-linux-arm'], p
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 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'));
loaderInputFilepath = 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'));

} else if (platform === 'win32') {
command = `${command}.cmd`;
loaderInputFilepath = path.join(destination, 'resources/app/out/vs/loader.js');
startupBlobFilepath = path.join(destination, 'snapshot_blob.bin')

} else if (platform === 'linux') {
// TODO
return () => { };
Expand Down Expand Up @@ -417,6 +420,8 @@ function snapshotTask(platform, arch) {
}

gulp.task('vscode-darwin-snapshots', ['vscode-darwin-min'], snapshotTask('darwin', undefined));
gulp.task('vscode-win32-ia32-snapshots', ['vscode-win32-ia32'], snapshotTask('win32', 'ia32'));
gulp.task('vscode-win32-x64-snapshots', ['vscode-win32-x64'], snapshotTask('win32', 'x64'));


// Transifex Localizations
Expand Down

0 comments on commit ca59971

Please sign in to comment.