forked from balena-io/etcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
64 lines (57 loc) · 1.6 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
ELECTRON_PACKAGER=./node_modules/.bin/electron-packager
ELECTRON_IGNORE=$(shell cat package.ignore | tr "\\n" "|" | sed "s/.$$//")
ELECTRON_VERSION=0.36.0
release/ResinEtcher-darwin-x64: .
$(ELECTRON_PACKAGER) . "Resin Etcher" \
--platform=darwin \
--arch=x64 \
--version=$(ELECTRON_VERSION) \
--ignore="$(ELECTRON_IGNORE)" \
--asar \
--icon="assets/icon.icns" \
--overwrite \
--out=release/
release/ResinEtcher-linux-ia32: .
$(ELECTRON_PACKAGER) . "Resin Etcher" \
--platform=linux \
--arch=ia32 \
--version=$(ELECTRON_VERSION) \
--ignore="$(ELECTRON_IGNORE)" \
--asar \
--overwrite \
--out=release/
release/ResinEtcher-linux-x64: .
$(ELECTRON_PACKAGER) . "Resin Etcher" \
--platform=linux \
--arch=x64 \
--version=$(ELECTRON_VERSION) \
--ignore="$(ELECTRON_IGNORE)" \
--asar \
--overwrite \
--out=release/
release/ResinEtcher-win32-ia32: .
$(ELECTRON_PACKAGER) . "Resin Etcher" \
--platform=win32 \
--arch=ia32 \
--version=$(ELECTRON_VERSION) \
--ignore="$(ELECTRON_IGNORE)" \
--icon="assets/icon.ico" \
--asar \
--overwrite \
--out=release/
release/ResinEtcher-win32-x64: .
$(ELECTRON_PACKAGER) . "Resin Etcher" \
--platform=win32 \
--arch=x64 \
--version=$(ELECTRON_VERSION) \
--ignore="$(ELECTRON_IGNORE)" \
--icon="assets/icon.ico" \
--asar \
--overwrite \
--out=release/
package-osx: release/ResinEtcher-darwin-x64
package-linux: release/ResinEtcher-linux-ia32 release/ResinEtcher-linux-x64
package-win32: release/ResinEtcher-win32-ia32 release/ResinEtcher-win32-x64
package-all: package-osx package-linux package-win32
clean:
rm -rf release/