This commit is contained in:
olebeck 2022-08-12 19:55:51 +02:00
parent 0b222b68e6
commit ca80abb650
5 changed files with 37 additions and 2 deletions

View File

@ -14,6 +14,7 @@ jobs:
# version number
- uses: actions-ecosystem/action-get-latest-tag@v1
id: get-latest-tag
if: ${{ !env.ACT }}
# build
- uses: actions/setup-go@v3
@ -21,6 +22,16 @@ jobs:
go-version: '1.19'
check-latest: true
cache: true
- name: decrypt
run: |
apt update -y
apt install git-crypt xxd -y
echo ${REPO_KEY} | xxd -r -p > ../bedrock-repo-key.key
git-crypt unlock ../bedrock-repo-key.key
rm ../bedrock-repo-key.key
env:
REPO_KEY: ${{ secrets.REPO_KEY }}
- name: build
run: make windows linux mac
@ -34,3 +45,4 @@ jobs:
title: "Development Build"
files: |
bedrocktool_*
if: ${{ !env.ACT }}

4
.gitignore vendored
View File

@ -10,4 +10,6 @@ __debug_bin
.vscode/launch.json
keys.db
skins/
worlds/
worlds/
test.bmp
.secrets

View File

@ -1,9 +1,24 @@
GC = go build -ldflags "-s -w"
TAG := $(shell git describe --tags)
TAG = $(shell git describe --tags)
NAME = bedrocktool_${TAG}
SRCS = $(wildcard *.go)
HAVE_PACKS = false
ifeq ($(shell head -c 7 resourcepack-ace.go),package)
HAVE_PACKS = true
endif
$(info pack support: ${HAVE_PACKS})
ifneq ($(HAVE_PACKS),true)
GC += -overlay overlay.json
endif
all: windows linux
.PHONY: all clean windows linux mac

1
nop.notgo Normal file
View File

@ -0,0 +1 @@
package main

5
overlay.json Normal file
View File

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