mirror of
https://github.com/Microsoft/vscode
synced 2024-09-20 02:58:15 +00:00
88603b377d
* electron@2.0.0-beta-1 * Update distro * Update electron.d.ts to 2.0.0-beta.1 * Disable asar as it causes a native crash * Adopt Module._resolveLookupPaths ASAR patch * electron 2.x - restore inspector URL in extension host * electron 2.x - adopt context menu callback for onHide * electron 2.x - remove workaround for https://github.com/electron/electron/issues/10442 * electron 2.x - update node.d.ts * electron 2.x - update node.d.ts to 8.9.x * electron 2.x - keep node.d.ts changes to a minimum * electron 2.x - remove workaround for https://github.com/electron/electron/issues/10862 * electron 2.x - bump to 2.0.0-beta2 * bump to 2.0.0-beta.3 * Context menu: selecting "Rename" does not put focs into rename box (fix #45601) * quality "exploration" for easier testing * empty commit * push a workaround for #45700 * Certain themes show UI artifacts over activity bar icons (fixes #45700) * better fix for #45700 * bump to 2.0.0-beta.4 * another fix to prevent flickering for #45700 * avoid remote access in index.js * bump distro commit * electron 2.x - do not use --debug anymore * bump electron to 2.0.0-beta.5 * electron 2.x - add libgtk-3-dev as build dependency for Linux 64 * electron 2.x - workaround freeze on linux on startup * bump local storage telemetry key * electron 2.x - do a one time backup of local storage * enable ELECTRON_ENABLE_LOGGING on macOS at least * 2.0.0-beta.6 * Fix ctrl+shift+e not focusing explorer on Linux * distro - use GH electron builds for now
41 lines
935 B
Bash
Executable file
41 lines
935 B
Bash
Executable file
#!/bin/bash
|
|
|
|
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; }
|
|
ROOT=$(dirname $(dirname $(realpath "$0")))
|
|
|
|
# On Linux with Electron 2.0.x running out of a VM causes
|
|
# a freeze so we only enable this flag on macOS
|
|
export ELECTRON_ENABLE_LOGGING=1
|
|
else
|
|
ROOT=$(dirname $(dirname $(readlink -f $0)))
|
|
fi
|
|
|
|
cd $ROOT
|
|
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
NAME=`node -p "require('./product.json').nameLong"`
|
|
CODE="./.build/electron/$NAME.app/Contents/MacOS/Electron"
|
|
else
|
|
NAME=`node -p "require('./product.json').applicationName"`
|
|
CODE=".build/electron/$NAME"
|
|
fi
|
|
|
|
# Node modules
|
|
test -d node_modules || yarn
|
|
|
|
# Get electron
|
|
node build/lib/electron.js || ./node_modules/.bin/gulp electron
|
|
|
|
# Unit Tests
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
cd $ROOT ; ulimit -n 4096 ; \
|
|
"$CODE" \
|
|
test/electron/index.js "$@"
|
|
else
|
|
cd $ROOT ; \
|
|
"$CODE" \
|
|
test/electron/index.js "$@"
|
|
fi
|