mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +00:00
chore: make use of electron-builder for the package-electron target (#1540)
This target builds a package for the current operating system, but doesn't create an installer out of it, which is useful for debugging purposes. Change-Type: patch Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
This commit is contained in:
parent
840388e8c5
commit
4f87079f12
10
Makefile
10
Makefile
@ -163,6 +163,7 @@ endif
|
||||
|
||||
ifdef DISABLE_UPDATES
|
||||
$(warning Update notification dialog has been disabled (DISABLE_UPDATES is set))
|
||||
ELECTRON_BUILDER_OPTIONS += --extraMetadata.updates.enabled=false
|
||||
endif
|
||||
|
||||
# ---------------------------------------------------------------------
|
||||
@ -433,7 +434,14 @@ TARGETS = \
|
||||
installers-all \
|
||||
electron-develop
|
||||
|
||||
package-electron: $(BUILD_DIRECTORY)/$(APPLICATION_NAME)-$(APPLICATION_VERSION)-$(TARGET_PLATFORM)-$(TARGET_ARCH)
|
||||
package-electron:
|
||||
CSC_NAME="$(CODE_SIGN_IDENTITY)" \
|
||||
CSC_IDENTITY_AUTO_DISCOVERY=false \
|
||||
CSC_LINK=$(CODE_SIGN_CERTIFICATE) \
|
||||
CSC_KEY_PASSWORD=$(CODE_SIGN_CERTIFICATE_PASSWORD) \
|
||||
TARGET_ARCH=$(TARGET_ARCH) \
|
||||
$(NPX) build --dir $(ELECTRON_BUILDER_OPTIONS)
|
||||
|
||||
package-cli: $(BUILD_DIRECTORY)/$(APPLICATION_NAME)-cli-$(APPLICATION_VERSION)-$(TARGET_PLATFORM)-$(TARGET_ARCH)
|
||||
|
||||
ifeq ($(TARGET_PLATFORM),darwin)
|
||||
|
Loading…
x
Reference in New Issue
Block a user