summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-07-29 12:22:38 +0300
committerAndrew Dolgov <[email protected]>2020-07-29 12:22:38 +0300
commit4abc8be86a344e5989c1595df4eb5c15e60cb7c7 (patch)
tree0128efdf8f3b05985e54eb3a8411a6c783bafeab
parentc7a457988dbf942152e113a97df69c31da702aac (diff)
add MakefileHEADmaster
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..a3240e4
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,11 @@
+wrk-dir := $(shell pwd)
+dst-dir := $(CRX_DST_DIR)
+pem-dir := $(CRX_PEM_DIR)
+
+ext-name := $(shell basename $(wrk-dir))
+
+$(dst-dir)/$(ext-name).crx: manifest.json
+ @echo ID: $(shell openssl rsa -pubout -outform DER -in $(pem-dir)/$(ext-name).pem 2>/dev/null | sha256sum | head -c32 | tr 0-9a-f a-p)
+ @cd ..
+ @crx3 -p $(pem-dir)/$(ext-name).pem -o $@ $(wrk-dir)
+