Skip to content

Commit 2d54ac2

Browse files
committed
Add arch and platform Electron env vars
1 parent fa82968 commit 2d54ac2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tools/make/common.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,3 +388,9 @@ deps_electron_version_slug := $(subst .,_,$(DEPS_ELECTRON_VERSION))
388388

389389
# Define the output path when building Electron:
390390
DEPS_ELECTRON_BUILD_OUT ?= $(DEPS_BUILD_DIR)/electron_$(deps_electron_version_slug)
391+
392+
# Host architecture:
393+
DEPS_ELECTRON_ARCH := $(shell $(NODE) -e 'console.log( process.arch )' )
394+
395+
# Host platform:
396+
DEPS_ELECTRON_PLATFORM := $(shell $(NODE) -e 'console.log( process.platform )' )

0 commit comments

Comments
 (0)