forked from Cimbali/markdown-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
27 lines (26 loc) · 856 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
(cd lib/katex && yarn install && USE_TTF=false USE_WOFF=false USE_WOFF2=false yarn build)
rm -r staging 2>/dev/null
rm -r web-ext-artifacts 2>/dev/null
for f in LICENSE \
manifest.json \
ext/* \
lib/highlightjs/build/highlight.min.js \
lib/highlightjs/build/styles/*.min.css \
lib/markdown-it/dist/markdown-it.min.js \
lib/markdown-it-checkbox/dist/markdown-it-checkbox.min.js \
lib/markdown-it-emoji/dist/markdown-it-emoji.min.js \
lib/markdown-it-footnote/dist/markdown-it-footnote.min.js \
lib/markdown-it-fancy-lists/markdown-it-fancy-lists.js \
lib/markdown-it-texmath/texmath.js \
lib/markdown-it-texmath/css/texmath.css \
lib/katex/dist/katex.min.js \
lib/katex/dist/katex.min.css \
lib/sss/sss.css \
lib/sss/print.css \
lib/sss/github.css
do
mkdir -p `dirname staging/$f`
cp $f staging/$f
done
web-ext build -s staging