setup.txt 745 字节
Newer Older
aaronchen2k2k's avatar
aaronchen2k2k 已提交
1 2
rm -rf ztf
mkdir ztf
aaronchen2k2k's avatar
aaronchen2k2k 已提交
3 4 5 6
mkdir ztf/log
cp -r conf ztf/
cp -r demo ztf/

7 8 9 10 11 12
go-bindata -o=res/res.go -pkg=res res/ res/doc res/json res/template

CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o ztf/ztf.exe src/ztf.go
GO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ztf/ztf-linux src/ztf.go
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o ztf/ztf-mac src/ztf.go

aaronchen2k2k's avatar
aaronchen2k2k 已提交
13 14 15 16 17 18 19
cd ztf
zip -r ztf-win-2.0.RC.zip ztf.exe demo conf log
cp -r ztf-linux ztf
zip -r ztf-linux-2.0.RC.zip ztf demo conf log
cp -r ztf-mac ztf
zip -r ztf-mac-2.0.RC.zip ztf demo conf log
rm ztf
20
cd ..
21

22
error_log(json_encode($_POST, JSON_FORCE_OBJECT));
23 24

Python:
aaronchen2k2k's avatar
doc  
aaronchen2k2k 已提交
25
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple requests
26 27 28 29

Ruby:
sudo apt-get install libgmp3-dev
sudo gem install json