Improve make script

This commit is contained in:
rugk 2019-02-10 17:37:17 +01:00
parent 3cfbdda23c
commit c006eb4afc
No known key found for this signature in database
GPG key ID: 05D40A636AFAB34D

View file

@ -1,4 +1,7 @@
#!/bin/sh
#
# Makes a release ZIP of the add-on.
#
EXTENSION_NAME="mastodon-auto-remote-follow@rugk.github.io"
@ -14,6 +17,7 @@ cp "./scripts/manifests/firefox.json" "./src/manifest.json" || exit
# create zip
cd src || exit
zip -r -FS "../build/$EXTENSION_NAME.xpi" ./* -x "tests/*" -x "**/tests/*" \
-x "docs/*" -x "**/docs/*" \
-x "**/README.md" -x "**/CONTRIBUTING.md" -x "**/manifest.json" \
-x "**/.git" -x "**/.gitignore" -x "**/.gitmodules" -x "**/.eslintrc" \
-x "**/.editorconfig"