This repository has been archived by the owner on Nov 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
/
Makefile
49 lines (36 loc) · 2.04 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
.PHONY:
build-sass: build-content build-popup
build-content:
yarn run sass src/styles/content_script.scss:dist/chromium/content_script.css
yarn run sass src/styles/content_script.scss:dist/firefox/content_script.css
yarn run sass src/styles/content_script.scss:dist/KryptonAuthenticator.safariextension/content_script.css
yarn run sass src/styles/content_script.scss:dist/edge/KryptonAuthenticator/edgeextension/manifest/Extension/content_script.css
build-popup:
yarn run sass src/styles/popup.scss:dist/chromium/popup.css
yarn run sass src/styles/popup.scss:dist/firefox/popup.css
yarn run sass src/styles/popup.scss:dist/KryptonAuthenticator.safariextension/popup.css
yarn run sass src/styles/popup.scss:dist/edge/KryptonAuthenticator/edgeextension/manifest/Extension/popup.css
watch-content:
yarn run sass --watch src/styles/content_script.scss:dist/chromium/content_script.css &
yarn run sass --watch src/styles/content_script.scss:dist/firefox/content_script.css &
yarn run sass --watch src/styles/content_script.scss:dist/KryptonAuthenticator.safariextension/content_script.css &
watch-popup:
yarn run sass --watch src/styles/popup.scss:dist/chromium/popup.css &
yarn run sass --watch src/styles/popup.scss:dist/firefox/popup.css &
yarn run sass --watch src/styles/popup.scss:dist/KryptonAuthenticator.safariextension/popup.css &
watch-sass: watch-popup watch-content
watch: build-sass watch-sass
npm run watch
build: build-sass
npm run build
zip-chromium:
rm -f u2f-chromium.zip; cd dist/chromium && zip ../../u2f-chromium.zip -r *
zip-firefox:
rm -f u2f-firefox.zip; cd dist/firefox && zip ../../u2f-firefox.zip -r *
zip-code:
rm -rf code.zip; zip code.zip `git ls-tree -r HEAD --name-only`
zip: zip-chromium zip-firefox zip-code
build-dist: build zip
deploy-safari:
s3cmd put --acl-public --region=us-east-1 --mime-type=application/octet-stream dist/KryptonAuthenticator.safariextz s3://safari.bin.krypt.co
s3cmd put --acl-public --region=us-east-1 dist/KryptonAuthenticator.safariextension/KryptonAuthenticatorUpdate.plist s3://safari.bin.krypt.co