forked from browserpass/browserpass-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
35 lines (27 loc) · 1.12 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
SHELL := /bin/bash
.PHONY: empty
empty:
.PHONY: chrome
chrome:
google-chrome --pack-extension=./chrome --pack-extension-key=./chrome-browserpass.pem
mv chrome.crx chrome-browserpass.crx
.PHONY: firefox
firefox:
cp chrome/{*.html,*.css,*.js,*.png,*.svg} firefox/
.PHONY: js
js: chrome/script.browserify.js
browserify chrome/script.browserify.js -o chrome/script.js
.PHONY: static-files
static-files: chrome/host.json firefox/host.json
cp chrome/host.json chrome-host.json
cp firefox/host.json firefox-host.json
browserpass-linux64: browserpass.go
env GOOS=linux GOARCH=amd64 go build -o $@
browserpass-darwinx64: browserpass.go
env GOOS=darwin GOARCH=amd64 go build -o $@
.PHONY: static-files chrome firefox
release: static-files chrome firefox browserpass-linux64 browserpass-darwinx64
zip -jFS "release/chrome" chrome/* chrome-browserpass.crx
zip -jFS "release/firefox" firefox/*
zip -FS "release/browserpass-linux64" browserpass-linux64 *-host.json chrome-browserpass.crx install.sh README.md LICENSE
zip -FS "release/browserpass-darwinx64" browserpass-darwinx64 *-host.json chrome-browserpass.crx install.sh README.md LICENSE