Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
project code
Browse files Browse the repository at this point in the history
  • Loading branch information
lengzhao committed Aug 28, 2019
1 parent 9310308 commit 8a47588
Show file tree
Hide file tree
Showing 96 changed files with 21,542 additions and 27 deletions.
24 changes: 24 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

TIME:=$(shell date '+%Y%m%d-%H%M%S')
SOFTWARE:=govm-$(TIME)
OUTPUT:=output/$(SOFTWARE)

.PHONY: clean all

all:
mkdir -p $(OUTPUT)
# CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o $(OUTPUT)/govm.exe
# CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o $(OUTPUT)/govm_amd.bin
CGO_ENABLED=0 go build -o $(OUTPUT)/govm.exe
cp run.tmpl $(OUTPUT)
cp main.tmpl $(OUTPUT)
mkdir -p $(OUTPUT)/conf
cp conf/conf.json $(OUTPUT)/conf
cp conf/bootstrap.json $(OUTPUT)/conf
cp conf/event_filter.json $(OUTPUT)/conf
cp -rf static $(OUTPUT)
cp LICENSE $(OUTPUT)
cd output && tar zcvf $(SOFTWARE).tar.gz $(SOFTWARE)

clean:
go clean
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ this is a blockchain system.

1. install golang(>v1.20)
2. download code
3. build: make
4. you will get the software package in output.such as govm-*.tar.gz
5. move the package to workdir
6. tar -zxvf govm-*.tar.gz
7. cd govm
8. start software: ./govm
9. browser open http://localhost:9090
3. build: go build
4. start software: ./govm
5. browser open http://localhost:9090
Loading

0 comments on commit 8a47588

Please sign in to comment.