forked from microsoft/vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5d4d385
commit 4537783
Showing
7 changed files
with
7 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,2 @@ | ||
@echo off | ||
setlocal | ||
set npm_config_disturl="https://atom.io/download/electron" | ||
for /f "tokens=2 delims=:, " %%a in ('findstr /R /C:"\"electronVersion\":.*" "%~dp0..\package.json"') do set npm_config_target=%%~a | ||
set npm_config_runtime="electron" | ||
set npm_config_cache=~\.npm-electron | ||
npm %* | ||
endlocal | ||
yarn %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,3 @@ | ||
#!/bin/bash | ||
|
||
if [[ "$OSTYPE" == "darwin"* ]]; then | ||
realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; } | ||
ROOT=$(dirname "$(dirname "$(realpath "$0")")") | ||
npm_config_arch=x64 | ||
else | ||
ROOT=$(dirname "$(dirname "$(readlink -f $0)")") | ||
|
||
# if [ -z $npm_config_arch ]; then | ||
# npm_config_arch=$(node -p process.arch) | ||
# echo "Warning: remember to set \$npm_config_arch to either x64 or ia32 to build the binaries for the right architecture. Picking '$npm_config_arch'." | ||
# fi | ||
fi | ||
|
||
ELECTRON_VERSION=$( | ||
cat "$ROOT"/package.json | | ||
grep electronVersion | | ||
sed -e 's/[[:space:]]*"electronVersion":[[:space:]]*"\([0-9.]*\)"\(,\)*/\1/' | ||
) | ||
|
||
ELECTRON_GYP_HOME=~/.electron-gyp | ||
mkdir -p $ELECTRON_GYP_HOME | ||
|
||
npm_config_disturl=https://atom.io/download/electron \ | ||
npm_config_target=$ELECTRON_VERSION \ | ||
npm_config_runtime=electron \ | ||
HOME=$ELECTRON_GYP_HOME \ | ||
npm $* | ||
yarn $* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters