mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +00:00
chore: add x86 architecture support for darwin/dependencies.sh (#883)
We don't really do x64 builds for OS X at the moment, but nice to make the build scripts consistent. Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
This commit is contained in:
parent
18799d4274
commit
2f980e808f
@ -68,9 +68,14 @@ fi
|
||||
# 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_target=$ARGV_ELECTRON_VERSION
|
||||
export npm_config_arch=$ARGV_ARCHITECTURE
|
||||
export npm_config_runtime=electron
|
||||
export npm_config_target=$ARGV_ELECTRON_VERSION
|
||||
|
||||
if [ "$ARGV_ARCHITECTURE" == "x86" ]; then
|
||||
export npm_config_arch=ia32
|
||||
else
|
||||
export npm_config_arch=$ARGV_ARCHITECTURE
|
||||
fi
|
||||
|
||||
rm -rf node_modules bower_components
|
||||
npm install --build-from-source
|
||||
|
Loading…
x
Reference in New Issue
Block a user