提交 771257c5 编写于 作者: J Joao Moreno

make linux deb build quality dependent

上级 b20c19c8
......@@ -117,6 +117,7 @@ var config = {
iconFile: 'resources/darwin/code_file.icns'
}],
darwinCredits: darwinCreditsTemplate ? new Buffer(darwinCreditsTemplate({ commit: commit, date: new Date().toISOString() })) : void 0,
linuxExecutableName: product.applicationName,
winIcon: 'resources/win32/code.ico',
token: process.env['GITHUB_TOKEN'] || void 0
};
......@@ -270,6 +271,7 @@ function prepareDebPackage(arch) {
return function () {
var shortcut = gulp.src('resources/linux/bin/code.sh', { base: '.' })
.pipe(replace('@@NAME@@', product.applicationName))
.pipe(rename(function (p) { p.extname = ''; p.dirname = 'usr/bin'; }));
var desktop = gulp.src('resources/linux/debian/code.desktop', { base: '.' })
......@@ -279,7 +281,7 @@ function prepareDebPackage(arch) {
.pipe(rename(function (p) { p.dirname = 'usr/share/pixmaps'; }));
var code = gulp.src(binaryDir + '/**/*', { base: binaryDir })
.pipe(rename(function (p) { p.dirname = 'usr/share/code/' + p.dirname; }));
.pipe(rename(function (p) { p.dirname = 'usr/share/' + product.applicationName + '/' + p.dirname; }));
var size = 0;
var control = code.pipe(es.through(
......
......@@ -3,16 +3,9 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
VSCODE_DIR="/usr/share/code"
if [ -x "$VSCODE_DIR/Code" ]; then
ELECTRON="$VSCODE_DIR/Code"
elif [ -x "$VSCODE_DIR/Code - OSS" ]; then
ELECTRON="$VSCODE_DIR/Code - OSS"
else
echo "Could not locate Visual Studio Code executable."
exit 1
fi
CLI="$VSCODE_DIR/resources/app/out/cli.js"
NAME="@@NAME@@"
VSCODE_PATH="/usr/share/$NAME"
ELECTRON="$VSCODE_PATH/$NAME"
CLI="$VSCODE_PATH/resources/app/out/cli.js"
ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" "$@"
exit $?
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册