mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +00:00
chore: update npm configuration in dependencies-npm.sh
(#961)
- The Electron npm headers can now be downloaded from https://atom.io/download/electron - We can configure gyp to build from source by using the `npm_config_build_from_source` environment variable rather than having to pass `--build-from-source` Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
This commit is contained in:
parent
d9148d585e
commit
d6fbbeff80
@ -81,12 +81,13 @@ if [ "$ARGV_TARGET_PLATFORM" == "electron" ]; then
|
||||
|
||||
# Ensure native addons are compiled with the correct headers
|
||||
# See https://github.com/electron/electron/blob/master/docs/tutorial/using-native-node-modules.md
|
||||
export npm_config_disturl=https://atom.io/download/atom-shell
|
||||
export npm_config_disturl=https://atom.io/download/electron
|
||||
export npm_config_runtime=electron
|
||||
|
||||
fi
|
||||
|
||||
export npm_config_target=$ARGV_TARGET_VERSION
|
||||
export npm_config_build_from_source=true
|
||||
|
||||
if [ "$ARGV_ARCHITECTURE" == "x86" ]; then
|
||||
export npm_config_arch=ia32
|
||||
@ -94,7 +95,7 @@ else
|
||||
export npm_config_arch=$ARGV_ARCHITECTURE
|
||||
fi
|
||||
|
||||
INSTALL_OPTS="--build-from-source"
|
||||
INSTALL_OPTS=""
|
||||
|
||||
if [ "$ARGV_FORCE" == "true" ]; then
|
||||
INSTALL_OPTS="$INSTALL_OPTS --force"
|
||||
|
Loading…
x
Reference in New Issue
Block a user