fix(Project): Make it runs more easily

This commit is contained in:
2024-07-18 09:55:34 +02:00
parent 0ee7abdf5d
commit 32bedaf62d
3 changed files with 34 additions and 18 deletions

15
golang/Makefile Normal file
View File

@ -0,0 +1,15 @@
all: run
run: fusion.doc
fusion.doc: key.txt
UNIDOC_LICENSE_API_KEY=$(shell cat key.txt) go run .
build: fusion.exe
fusion.exe: key.txt
env UNIDOC_LICENSE_API_KEY=$(shell cat key.txt) GOOS=windows GOARCH=amd64 go build .
clean:
rm -f ./fusion.doc
rm -f ./fusion.exe