Finish all the refine work
This commit is contained in:
parent
f5c9616bac
commit
f35852b696
8
.gitignore
vendored
8
.gitignore
vendored
@ -1,5 +1,9 @@
|
|||||||
#idea file
|
#idea file
|
||||||
.idea
|
.idea
|
||||||
|
|
||||||
dist
|
# develop temp folder.
|
||||||
tmp
|
tmp
|
||||||
|
|
||||||
|
# build execute file
|
||||||
|
tank
|
||||||
|
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
# Eyeblue Tank
|
# Eyeblue Tank
|
||||||
|
|
||||||
> The document is comming...
|
> The document is comming...
|
||||||
|
|
||||||
|
|
||||||
|
go build -mod=readonly
|
@ -40,6 +40,8 @@ func GetDevHomePath() string {
|
|||||||
panic("cannot get dev home path.")
|
panic("cannot get dev home path.")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fmt.Println(file)
|
||||||
|
|
||||||
dir := GetDirOfPath(file)
|
dir := GetDirOfPath(file)
|
||||||
dir = GetDirOfPath(dir)
|
dir = GetDirOfPath(dir)
|
||||||
dir = GetDirOfPath(dir)
|
dir = GetDirOfPath(dir)
|
||||||
@ -57,6 +59,8 @@ func GetHomePath() string {
|
|||||||
}
|
}
|
||||||
exPath := filepath.Dir(ex)
|
exPath := filepath.Dir(ex)
|
||||||
|
|
||||||
|
GetDevHomePath()
|
||||||
|
|
||||||
//如果exPath中包含了 /private/var/folders 我们认为是在Mac的开发环境中
|
//如果exPath中包含了 /private/var/folders 我们认为是在Mac的开发环境中
|
||||||
macDev := strings.HasPrefix(exPath, "/private/var/folders")
|
macDev := strings.HasPrefix(exPath, "/private/var/folders")
|
||||||
if macDev {
|
if macDev {
|
||||||
|
Loading…
Reference in New Issue
Block a user