-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
47 lines (42 loc) · 950 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
.DEFAULT_GOAL := build
ifeq ($(OS),Windows_NT)
D_OS += windows
ifeq ($(PROCESSOR_ARCHITECTURE),AMD64)
D_PA += x64
endif
ifeq ($(PROCESSOR_ARCHITECTURE),x86)
D_PA += ia32
endif
else
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
D_OS += linux
endif
ifeq ($(UNAME_S),Darwin)
D_OS += macos
endif
UNAME_M := $(shell uname -m)
ifeq ($(UNAME_M),x86_64)
D_PA += x64
endif
ifeq ($(UNAME_M),armv7l)
D_PA += armv7l
endif
ifneq ($(filter arm%,$(UNAME_M)),)
D_PA += arm64
endif
endif
prepare:
npm list -g --depth=0 electron-builder || npm i -g electron-builder
[ -d node_modules ] || npm install
[ -d dist ] || npm run build
.PHONY:prepare
build: prepare
export AWS_ENDPOINT="test" && electron-builder build --$(D_OS) --$(D_PA) -p never
.PHONY:build
force:
npm i -g electron-builder
npm install
npm run build
export AWS_ENDPOINT="test" && electron-builder build --$(D_OS) --$(D_PA) -p never
.PHONY:force