make linux deb build quality dependent

This commit is contained in:
Joao Moreno
2016-02-12 15:48:39 +01:00
parent b20c19c88f
commit 771257c5ab
3 changed files with 8 additions and 13 deletions

View File

@@ -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 $?