diff --git a/.gitignore b/.gitignore index 1f1b939..1a4c6c7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,9 @@ #idea file .idea -dist -tmp \ No newline at end of file +# develop temp folder. +tmp + +# build execute file +tank + diff --git a/build/doc/README_en.md b/build/doc/README_en.md index 7a54949..8adbfd1 100644 --- a/build/doc/README_en.md +++ b/build/doc/README_en.md @@ -1,3 +1,6 @@ # Eyeblue Tank -> The document is comming... \ No newline at end of file +> The document is comming... + + +go build -mod=readonly \ No newline at end of file diff --git a/code/tool/util/util_path.go b/code/tool/util/util_path.go index 2d94404..d0ea7a6 100644 --- a/code/tool/util/util_path.go +++ b/code/tool/util/util_path.go @@ -40,6 +40,8 @@ func GetDevHomePath() string { panic("cannot get dev home path.") } + fmt.Println(file) + dir := GetDirOfPath(file) dir = GetDirOfPath(dir) dir = GetDirOfPath(dir) @@ -57,6 +59,8 @@ func GetHomePath() string { } exPath := filepath.Dir(ex) + GetDevHomePath() + //如果exPath中包含了 /private/var/folders 我们认为是在Mac的开发环境中 macDev := strings.HasPrefix(exPath, "/private/var/folders") if macDev { diff --git a/code/main/main.go b/main.go similarity index 100% rename from code/main/main.go rename to main.go