Permalink
Browse files

added Makefile

  • Loading branch information...
1 parent 6a96b82 commit 8e7636a79650ff3926fc40573def6403c21f2c7a @mrshu mrshu committed May 13, 2012
View
@@ -0,0 +1,26 @@
+EXTNAME := chrome-webstore
+KEYFILE := $(EXTNAME).pem
+SHELL := /usr/bin/env bash
+CHROME := chromium -n --args
+CWD := $(shell pwd)
+TMPDIR := $(shell mktemp -d)
+VERSION := $(shell python -c "import json,sys;print json.loads(sys.stdin.read()).get('version','')" < manifest.json)
+ITEMS := img/ manifest.json
+
+all: pack
+
+moveout: $(ITEMS)
+ mkdir $(TMPDIR)/$(EXTNAME)
+ cp -R $(ITEMS) $(TMPDIR)/$(EXTNAME)
+
+crx: moveout
+ $(CHROME) --pack-extension=$(TMPDIR)/$(EXTNAME) \
+ --pack-extension-key=$(KEYFILE) --no-message-box
+ mv $(TMPDIR)/$(EXTNAME).crx $(CWD)/build/$(EXTNAME)-latest.crx
+
+zip: moveout
+ cd $(TMPDIR)/$(EXTNAME)/ && zip $(EXTNAME)-$(VERSION).zip -r ./*
+ cp $(TMPDIR)/$(EXTNAME)/$(EXTNAME)-$(VERSION).zip $(CWD)
+
+clean:
+ rm $(CWD)/*.zip
Binary file not shown.
View
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
View
@@ -1,12 +1,12 @@
{
"name": "DuckDuckGo",
- "version": "0.0.1",
+ "version": "0.0.2",
"manifest_version": 1,
"description": "Quick link to DuckDuckGo search engine",
"icons": {
- "16": "duckduckgo_16.png",
- "48": "duckduckgo_48.png",
- "128": "duckduckgo_128.png"
+ "16": "img/duckduckgo_16.png",
+ "48": "img/duckduckgo_48.png",
+ "128": "img/duckduckgo_128.png"
},
"app": {
"urls": [ "https://www.duckduckgo.com" ],

0 comments on commit 8e7636a

Please sign in to comment.