Skip to content

Commit

Permalink
set target arch if it's defined
Browse files Browse the repository at this point in the history
  • Loading branch information
azmy60 committed Jul 16, 2024
1 parent 1a9ad6f commit 73cfb88
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/node_build_win.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ make clean
if [ -n "$ELECTRON_VERSION" ] ; then
# Electron's version.
export npm_config_target="$ELECTRON_VERSION"
# The architecture of your machine
export npm_config_arch="$TARGET_ARCH"
export npm_config_target_arch="$TARGET_ARCH"
if [ -n "$TARGET_ARCH" ] ; then
# The architecture of your machine
export npm_config_arch="$TARGET_ARCH"
export npm_config_target_arch="$TARGET_ARCH"
fi
# Download headers for Electron.
export npm_config_disturl=https://electronjs.org/headers
# Tell node-pre-gyp that we are building for Electron.
Expand Down

0 comments on commit 73cfb88

Please sign in to comment.