FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonVSCode/scripts/npm.sh at ipython · rmagee/pythonVSCode · GitHub
rmagee
/
pythonVSCode
Public
forked from
DonJayamanne/pythonVSCode
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonVSCode
/
scripts
/
npm.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
25 lines (20 loc) · 724 Bytes
Breadcrumbs
pythonVSCode
/
scripts
/
npm.sh
Copy path
File metadata and controls
executable file
·
25 lines (20 loc) · 724 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!
/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=1.3.7
ELECTRON_GYP_HOME=
~
/.electron-gyp
mkdir -p
$ELECTRON_GYP_HOME
npm_config_disturl=https://atom.io/download/atom-shell \
npm_config_target=
$ELECTRON_VERSION
\
npm_config_runtime=electron \
HOME=
$ELECTRON_GYP_HOME
\
npm
$*
Back
|
FazBrowse Home
|
New Git URL