Compare commits

..

No commits in common. "master" and "v1.0.0" have entirely different histories.

4 changed files with 6 additions and 34 deletions

View File

@ -1,17 +0,0 @@
pipeline:
build:
image: alpine:3.13
commands:
- apk add zip make
- make
publish:
image: plugins/gitea-release
settings:
api_key:
from_secret: GITEA_KEY
base_url: https://gitea.malloc.hackerbots.net/
files:
- ./*.zip
- ./*.sha1
when:
event: tag

View File

@ -1,17 +1,12 @@
.PHONY: all
BUILD_VERSION:=$(shell git describe --tags)
all: malloc-items-1.0.zip malloc-items-1.0.zip.sha1
all: malloc-items-$(BUILD_VERSION).zip malloc-items-$(BUILD_VERSION).zip.sha1
malloc-items-1.0.zip: pack.mcmeta
zip -r malloc-items-1.0.zip pack.mcmeta assets
pack.mcmeta: pack.mcmeta.in
sed -e 's/@VERSION@/$(BUILD_VERSION)/g' $< > $@
malloc-items-$(BUILD_VERSION).zip: pack.mcmeta
zip -r malloc-items-$(BUILD_VERSION).zip pack.mcmeta assets
malloc-items-$(BUILD_VERSION).zip.sha1: malloc-items-$(BUILD_VERSION).zip
malloc-items-1.0.zip.sha1: malloc-items-1.0.zip
sha1sum $< > $@
clean:
rm -f malloc-items-$(BUILD_VERSION).zip malloc-items-$(BUILD_VERSION).zip.sha1
rm -f malloc-items-1.0.zip malloc-items-1.0.zip.sha1

View File

@ -1,6 +1,6 @@
{
"pack": {
"pack_format": 9,
"description": "The Magic of Malloc (v1.0.0)"
"description": "The Magic of Malloc (1.0.0)"
}
}

View File

@ -1,6 +0,0 @@
{
"pack": {
"pack_format": 9,
"description": "The Magic of Malloc (@VERSION@)"
}
}