Commit c5bd4c62 authored by Johan Oudinet's avatar Johan Oudinet Committed by JC Brand

Makefile: Create an archive with all assets.

Add the version to the archive name so it also fixes #1375.
Remove the recipes for css/webfonts.zip, sounds.zip, and locale.zip.
parent 28845bb8
......@@ -9,6 +9,7 @@ ESLINT ?= ./node_modules/.bin/eslint
HTTPSERVE ?= ./node_modules/.bin/http-server
HTTPSERVE_PORT ?= 8000
INKSCAPE ?= inkscape
INSTALL ?= install
JSDOC ?= ./node_modules/.bin/jsdoc
LERNA ?= ./node_modules/.bin/lerna
OXIPNG ?= oxipng
......@@ -100,6 +101,16 @@ release:
make po
make po2json
make build
mkdir -p 'converse-assets-$(VERSION)'
$(INSTALL) -D dist/converse.min.js 'converse-assets-$(VERSION)/converse.js'
$(INSTALL) -D css/converse.min.css \
'converse-assets-$(VERSION)/css/converse.css'
cp -r css/webfonts 'converse-assets-$(VERSION)/css/'
cp -r sounds 'converse-assets-$(VERSION)/'
find locale -type f -name '*.json' \
-exec $(INSTALL) -D '{}' 'converse-assets-$(VERSION)/{}' \;
zip -r 'converse-assets-$(VERSION).zip' 'converse-assets-$(VERSION)'
rm -rf 'converse-assets-$(VERSION)'
########################################################################
......@@ -208,16 +219,7 @@ dist/converse-no-dependencies-es2015.js: src webpack.config.js stamp-npm @conver
dist:: build
.PHONY: build
build:: dev css $(BUILDS) locale.zip css/webfonts.zip sounds.zip
css/webfonts.zip: css/webfonts/*
zip -r css/webfonts.zip css/webfonts
locale.zip:
zip -r locale.zip locale --exclude *.pot --exclude *.po --exclude *.po~
sounds.zip:
zip -r sounds.zip sounds
build:: dev css $(BUILDS)
########################################################################
## Tests
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment