From 258bde4ce449c91686938ad6c88194cef74e53cd Mon Sep 17 00:00:00 2001 From: Joao Moreno Date: Thu, 18 May 2017 16:02:40 +0200 Subject: [PATCH] fix es6 --- build/gulpfile.vscode.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build/gulpfile.vscode.js b/build/gulpfile.vscode.js index cc301600b2c..d4effb3d819 100644 --- a/build/gulpfile.vscode.js +++ b/build/gulpfile.vscode.js @@ -136,7 +136,7 @@ const config = { repo: product.electronRepository || void 0 }; -function getElectron(arch = process.arch) { +function getElectron(arch) { return () => { const electronOpts = _.extend({}, config, { platform: process.platform, @@ -154,7 +154,7 @@ function getElectron(arch = process.arch) { } gulp.task('clean-electron', util.rimraf('.build/electron')); -gulp.task('electron', ['clean-electron'], getElectron()); +gulp.task('electron', ['clean-electron'], getElectron(process.arch)); gulp.task('electron-ia32', ['clean-electron'], getElectron('ia32')); gulp.task('electron-x64', ['clean-electron'], getElectron('x64')); @@ -194,7 +194,9 @@ function computeChecksum(filename) { return hash; } -function packageTask(platform, arch, opts = {}) { +function packageTask(platform, arch, opts) { + opts = opts || {}; + const destination = path.join(path.dirname(root), 'VSCode') + (platform ? '-' + platform : '') + (arch ? '-' + arch : ''); platform = platform || process.platform; arch = platform === 'win32' ? 'ia32' : arch; -- GitLab