build: add version to pack.mcmeta
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Victoria Fierce 2023-02-18 13:44:43 +01:00
parent f9888588d6
commit d98d3bd8f1
4 changed files with 13 additions and 2 deletions

View File

@ -9,4 +9,6 @@ pipeline:
api_key:
from_secret: GITEA_KEY
base_url: https://gitea.malloc.hackerbots.net/
files: *.zip *.sha1
files:
- ./*.zip
- ./*.sha1

View File

@ -4,6 +4,9 @@ BUILD_VERSION:=$(shell git describe --tags)
all: malloc-data-$(BUILD_VERSION).zip malloc-data-$(BUILD_VERSION).zip.sha1
pack.mcmeta: pack.mcmeta.in
sed -e 's/@VERSION@/$(BUILD_VERSION)/g' $< > $@
malloc-data-$(BUILD_VERSION).zip: pack.mcmeta
zip -r $@ pack.mcmeta data

View File

@ -1,6 +1,6 @@
{
"pack": {
"pack_format": 10,
"description": "Malloc Minecraft Item Functions (1.0.0)"
"description": "Malloc Minecraft Item Functions (v1.0.0-1-gf988858)"
}
}

6
pack.mcmeta.in Normal file
View File

@ -0,0 +1,6 @@
{
"pack": {
"pack_format": 10,
"description": "Malloc Minecraft Item Functions (@VERSION@)"
}
}