This commit is contained in:
Joao Moreno 2016-01-27 15:41:54 +01:00
parent 794b7d3521
commit b14258e8d1
2 changed files with 8 additions and 2 deletions

View file

@ -94,7 +94,7 @@ gulp.task('clean-minified-vscode', util.rimraf('out-vscode-min'));
gulp.task('minify-vscode', ['clean-minified-vscode', 'optimize-vscode'], common.minifyTask('out-vscode', false)); gulp.task('minify-vscode', ['clean-minified-vscode', 'optimize-vscode'], common.minifyTask('out-vscode', false));
// Package // Package
var product = JSON.parse(fs.readFileSync(path.join(root, 'product.json'), 'utf8')); var product = require('../product.json');
var darwinCreditsTemplate = product.darwinCredits && _.template(fs.readFileSync(path.join(root, product.darwinCredits), 'utf8')); var darwinCreditsTemplate = product.darwinCredits && _.template(fs.readFileSync(path.join(root, product.darwinCredits), 'utf8'));
var config = { var config = {
@ -242,7 +242,12 @@ function packageTask(platform, arch, opts) {
.pipe(filter(['**', '!LICENSE', '!LICENSES.chromium.html', '!version'])); .pipe(filter(['**', '!LICENSE', '!LICENSES.chromium.html', '!version']));
if (platform === 'win32') { if (platform === 'win32') {
result = es.merge(result, gulp.src('resources/win32/bin/**', { base: 'resources/win32' })); var shortcutFilter = filter('bin/*.cmd', { restore: true });
result = es.merge(result, gulp.src('resources/win32/bin/**', { base: 'resources/win32' }))
.pipe(shortcutFilter)
.pipe(rename(function (f) { f.basename = product.win32ShortcutName; }))
.pipe(shortcutFilter.restore);
} }
return result.pipe(symdest(destination)); return result.pipe(symdest(destination));

View file

@ -2,6 +2,7 @@
"nameShort": "Code [OSS Build]", "nameShort": "Code [OSS Build]",
"nameLong": "Code [OSS Build]", "nameLong": "Code [OSS Build]",
"win32MutexName": "vscodeoss", "win32MutexName": "vscodeoss",
"win32ShortcutName": "code-oss",
"licenseUrl": "https://github.com/Microsoft/vscode/blob/master/LICENSE.txt", "licenseUrl": "https://github.com/Microsoft/vscode/blob/master/LICENSE.txt",
"darwinBundleIdentifier": "com.visualstudio.code.oss", "darwinBundleIdentifier": "com.visualstudio.code.oss",
"welcomePage": "http://go.microsoft.com/fwlink/?LinkId=723048" "welcomePage": "http://go.microsoft.com/fwlink/?LinkId=723048"