提交 5467ba06 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

print the work dir for debug when run from windows PATH enviroment var

上级 a578f408
......@@ -3,7 +3,7 @@ setlocal enabledelayedexpansion
goto start
[case]
title=check string matches pattern
cid=0
cid=-1
pid=0
[group]
......
......@@ -3,7 +3,7 @@
:<<!
[case]
title=test demo scrtips
cid=0
cid=-1
pid=0
[group]
......
......@@ -139,7 +139,10 @@ func GetZtfDir() string { // where ztf command in
dir, _ = filepath.Abs(filepath.Dir(os.Args[0]))
}
return UpdateDir(dir)
dir = UpdateDir(dir)
fmt.Println("run in " + dir)
return dir
}
func GetCurrDir() string { // where you run command from
......
......@@ -11,10 +11,14 @@ 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
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
cd ..
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册