Skip to content

Commit 3e3788a

Browse files
committed
Publish correctly for arm64.
1 parent 39e2f0a commit 3e3788a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.circleci/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ aliases:
3737
if [[ "${ELECTRON_VERSION}" ]]; then
3838
GYP_ARGS="--runtime=electron --target=${ELECTRON_VERSION} --dist-url=https://electronjs.org/headers"
3939
fi
40+
if [[ "${BUILD_ARM64}" == "true" ]]; then
41+
GYP_ARGS="${GYP_ARGS} --target_arch=arm64"
42+
fi
4043
COMMIT_MESSAGE=`git log --format=%s -n 1 $CIRCLE_SHA1`
4144
if [[ ${COMMIT_MESSAGE} =~ "[publish binary]" ]] && [[ "$PUBLISH" == "true" ]]; then
4245
./node_modules/.bin/node-pre-gyp publish $GYP_ARGS

0 commit comments

Comments
 (0)