-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathMakefile
31 lines (26 loc) · 829 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
run:
npx electron .
init:
npm install
build: clean
npx license-checker --production --relativeLicensePath > THIRD-PARTY-LICENSES.md
npx electron-packager . konata \
--out=packaging-work \
--platform=darwin,win32,linux \
--arch=x64 \
--electron-version=23.0.0 \
--ignore work \
--ignore packaging-work \
--ignore .vscode \
--asar \
--prune=true # Exclude devDependencies
DOCUMENTS = README.md LICENSE.md THIRD-PARTY-LICENSES.md
pack: build
cp $(DOCUMENTS) -t ./packaging-work/
cd packaging-work/; zip -r konata-win32-x64.zip konata-win32-x64 $(DOCUMENTS)
cd packaging-work/; tar -cvzf konata-linux-x64.tar.gz konata-linux-x64 $(DOCUMENTS)
cd packaging-work/; tar -cvzf konata-darwin-x64.tar.gz konata-darwin-x64 $(DOCUMENTS)
clean:
rm packaging-work -r -f
distclean: clean
rm node_modules -r -f