diff --git a/README.md b/README.md index 6a5e871..e4656b9 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ Module for the Beguiler class in foundry. +## License + +The Beguiler class is described at https://a-dungeon-world.fandom.com/wiki/The_Beguiler apparently under CC-BY-SA. However I doubt they are the copyright owner of this class, so CC-BY-SA may not be compatible with the actual license if any. + ## Meh because javascrip, packs data is not stored as json but as nedb files. Thankfully, we can avoid using an unmaintained javascript tool by using `jq`: diff --git a/module.json b/module.json index 9bed06e..0588e99 100644 --- a/module.json +++ b/module.json @@ -10,7 +10,7 @@ "esmodules": [ "modules/settings.js" ], - "version": "0.0.1", + "version": "1.0.0", "compatibility": { "minimum": "10", "verified": "10" @@ -62,5 +62,8 @@ "name": "English", "path": "languages/en.json" } - ] + ], + "url": "https://git.pains-perdus.fr/histausse/the_beguiler_module", + "manifest": "https://git.pains-perdus.fr/histausse/the_beguiler_module/raw/branch/main/module.json", + "download": "" } diff --git a/package.sh b/package.sh new file mode 100755 index 0000000..566e03b --- /dev/null +++ b/package.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +VERSION=`cat module.json | jq -r '.version'` +TMP_DIR=`mktemp -d` +FOLDER="${TMP_DIR}/the_beguiler_module_${VERSION}" + +sh ./json_to_nedb.sh +mkdir "${FOLDER}" +cp -r languages README.md module.json modules "${FOLDER}/" +mkdir "${FOLDER}/packs" +cp packs/*.db "${FOLDER}/packs" + +zip -r "the_beguiler_module_${VERSION}.zip" "${FOLDER}" +rm -rf "${TMP_DIR}"