make go build work

This commit is contained in:
olebeck 2022-09-01 22:55:25 +02:00
parent a421627ced
commit 90b3ef2604
5 changed files with 5 additions and 4 deletions

2
.gitattributes vendored
View File

@ -1 +1 @@
resourcepack-ace.go filter=git-crypt diff=git-crypt
resourcepack-ace.go.ignore filter=git-crypt diff=git-crypt

View File

@ -6,11 +6,12 @@ GC = go build -ldflags "-s -w -X main.version=${TAG}"
# check if packs are supported
HAVE_PACKS = false
ifeq ($(shell head -c 7 resourcepack-ace.go),package)
ifeq ($(shell head -c 7 resourcepack-ace.go.ignore),package)
HAVE_PACKS = true
endif
$(info pack support: ${HAVE_PACKS})
ifneq ($(HAVE_PACKS),true)
ifeq ($(HAVE_PACKS),true)
GC += -overlay overlay.json
endif

View File

@ -1,5 +1,5 @@
{
"Replace": {
"resourcepack-ace.go": "nop.notgo"
"rp.go": "resourcepack-ace.go.ignore"
}
}

View File