build(cordova): simplify build, use cordova in a more standard way

This commit is contained in:
Jason Dreyzehner 2016-10-06 00:18:29 -04:00
commit d5e6b8fab8
14 changed files with 175 additions and 133 deletions

View file

@ -9,16 +9,16 @@ BASE=$(CURDIR)
all: $(ZIPFILE)
dir:
dir:
rm -rf $(BUILDDIR)
mkdir -p $(BUILDDIR)
cp manifest.json $(BUILDDIR)/manifest.json
cp -vf $(INITIAL) $(BUILDDIR)
files:
cd ../public && rsync -rLRv --exclude-from $(BASE)/exclude $(INCLUDE) $(BASE)/$(BUILDDIR) && cd -
cd ../www && rsync -rLRv --exclude-from $(BASE)/exclude $(INCLUDE) $(BASE)/$(BUILDDIR) && cd -
cd .. && rsync -rLRv ./bower_components/trezor-connect/chrome/* $(BASE)/$(BUILDDIR)/ && cd -
$(ZIPFILE): dir files
cd $(BUILDDIR)