lemmy-simplified-federation/scripts/make.sh
rugk 6ea5a42819
Add unit tests
Some small first unit tests for the common, module, at least.
2018-09-01 13:49:45 +02:00

22 lines
545 B
Bash
Executable file

#!/bin/sh
EXTENSION_NAME="mastodon-auto-remote-follow@rugk.github.io"
mkdir -p "build"
# license should be in add-on
mv LICENSE.md src/LICENSE.md
# make sure we are using the stable manifest
# as the dev edition manifest.json allows mocha.css and mocha.js in the CSP
cp "./scripts/manifests/firefox.json" "./src/manifest.json" || exit
# create zip
cd src || exit
zip -r -FS "../build/$EXTENSION_NAME.zip" ./* --exclude "tests/*"
# revert changes
mv LICENSE.md ../LICENSE.md
cp "../scripts/manifests/dev.json" "../src/manifest.json"
cd ..