secrets
This commit is contained in:
parent
0b222b68e6
commit
ca80abb650
|
@ -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 }}
|
||||
|
|
|
@ -10,4 +10,6 @@ __debug_bin
|
|||
.vscode/launch.json
|
||||
keys.db
|
||||
skins/
|
||||
worlds/
|
||||
worlds/
|
||||
test.bmp
|
||||
.secrets
|
17
Makefile
17
Makefile
|
@ -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
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"Replace": {
|
||||
"resourcepack-ace.go": "nop.notgo"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue