mtinfo/scripts/generate-site.sh
2021-02-11 11:40:28 +01:00

13 lines
413 B
Bash
Executable File

#!/bin/sh
docker run --rm -i \
--user root \
-v $(pwd)/scripts/minetest.conf:/etc/minetest/minetest.conf:ro \
-v $(pwd)/:/root/.minetest/worlds/world/worldmods/mtinfo \
-v $(pwd)/output:/root/.minetest/worlds/world/mtinfo \
registry.gitlab.com/minetest/minetest/server:5.3.0
test -f $(pwd)/output/index.html || exit 1
test -f $(pwd)/output/data/items.js || exit 1
test -d $(pwd)/output/textures || exit 1