forked from keybase/client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
25 lines (21 loc) · 826 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
build: bundle
release: clean bundle
mkdir build/
git archive HEAD . | tar x -C build/
cp js/bundle.js build/js/bundle.js
cp ../LICENSE build/LICENSE
jq 'del(.key)' build/manifest.json > build/manifest.firefox.json
jq 'del(.key,.applications)' build/manifest.json > build/manifest.chrome.json
@echo "Packaging Chrome..."
cp build/manifest.chrome.json build/manifest.json
cd build && zip -q -r ../keybase-chrome-$(shell jq -r ".version" manifest.json).zip .
@echo "Packaging Firefox..."
cp build/manifest.firefox.json build/manifest.json
cd build && zip -q -r ../keybase-firefox-$(shell jq -r ".version" manifest.json).zip .
clean:
rm -rf build/
rm -f js/bundle.js
rm -f keybase-{chrome,firefox}-*.zip
bundle: ./js/bundle.js
js/bundle.js: package.json webpack.config.js js/bundle.entry.js
yarn && yarn build