prerelease

This commit is contained in:
Histausse 2023-06-11 16:31:59 +02:00
parent da2a01246b
commit 6ef545279c
3 changed files with 23 additions and 2 deletions

View file

@ -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`:

View file

@ -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": ""
}

14
package.sh Executable file
View file

@ -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}"