mirror of
https://github.com/Microsoft/vscode
synced 2024-11-05 18:29:38 +00:00
fixes #2127
This commit is contained in:
parent
794b7d3521
commit
b14258e8d1
2 changed files with 8 additions and 2 deletions
|
@ -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));
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue