adding packaging tool
This commit is contained in:
parent
17c2a83c19
commit
6ea048482e
1 changed files with 21 additions and 0 deletions
21
Makefile
Normal file
21
Makefile
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
NAME = chromesoul
|
||||||
|
VERSION = $(shell cat manifest.json | /bin/grep '"version"' | cut -d '"' -f 4)
|
||||||
|
SRC = background.js \
|
||||||
|
chromesoul.css \
|
||||||
|
chromesoul.html \
|
||||||
|
chromesoul.js \
|
||||||
|
CREDITS.md \icon_128.png \
|
||||||
|
icon_16.png \
|
||||||
|
img \
|
||||||
|
lib \
|
||||||
|
LICENCE.txt \
|
||||||
|
manifest.json \
|
||||||
|
README.md \
|
||||||
|
third-party
|
||||||
|
PUBDIR = publish
|
||||||
|
ARCHIVE = $(PUBDIR)/chromesoul_$(VERSION).zip
|
||||||
|
|
||||||
|
all:
|
||||||
|
zip -r $(ARCHIVE) $(SRC)
|
||||||
|
rm -f $(PUBDIR)/chromesoul.zip
|
||||||
|
ln -s $(ARCHIVE) $(PUBDIR)/chromesoul.zip
|
Reference in a new issue