mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Build and release amd64 & arm64 together (macOS) (#3700)
* build and release amd64 & arm64 together Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * fixes Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
1 parent
d78c65d7e1
commit
9d6bed8786
7 files changed
+39
-77
No files matched your search
@@ -3,8 +3,8 @@ CMD_ARGS = $(filter-out $@,$(MAKECMDGOALS))
|
||||
%:
|
||||
@:
|
||||
|
||||
BINARY_ARCH ?= x64
|
||||
NPM_RELEASE_TAG ?= latest
|
||||
ELECTRON_BUILDER_EXTRA_ARGS ?=
|
||||
EXTENSIONS_DIR = ./extensions
|
||||
extensions = $(foreach dir, $(wildcard $(EXTENSIONS_DIR)/*), ${dir})
|
||||
extension_node_modules = $(foreach dir, $(wildcard $(EXTENSIONS_DIR)/*), ${dir}/node_modules)
|
||||
@@ -63,10 +63,8 @@ build: node_modules binaries/client
|
||||
ifeq "$(DETECTED_OS)" "Windows"
|
||||
# https://github.com/ukoloff/win-ca#clear-pem-folder-on-publish
|
||||
rm -rf node_modules/win-ca/pem
|
||||
yarn run electron-builder --publish onTag --x64 --ia32
|
||||
else
|
||||
yarn run electron-builder --publish onTag --$(BINARY_ARCH)
|
||||
endif
|
||||
yarn run electron-builder --publish onTag $(ELECTRON_BUILDER_EXTRA_ARGS)
|
||||
|
||||
$(extension_node_modules): node_modules
|
||||
cd $(@:/node_modules=) && ../../node_modules/.bin/npm install --no-audit --no-fund
|
||||
|
||||
Reference in new issue
Block a user