Compare commits
2 Commits
master
...
windows_bu
Author | SHA1 | Date |
---|---|---|
Dan Ballard | f59240e6c8 | |
Dan Ballard | 8337c92f45 |
4
main.go
4
main.go
|
@ -24,6 +24,7 @@ import (
|
||||||
mrand "math/rand"
|
mrand "math/rand"
|
||||||
"os"
|
"os"
|
||||||
"os/user"
|
"os/user"
|
||||||
|
"path"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"runtime"
|
"runtime"
|
||||||
"time"
|
"time"
|
||||||
|
@ -167,8 +168,9 @@ func mainUi(flagLocal bool, flagClientUI bool) {
|
||||||
if runtime.GOOS == "windows" {
|
if runtime.GOOS == "windows" {
|
||||||
dir = "/" + dir
|
dir = "/" + dir
|
||||||
}
|
}
|
||||||
gcd.SetAssetPath("file://" + filepath.Join(dir, "assets") + "/")
|
gcd.SetAssetPath("file://" + path.Join(dir, "assets") + "/") // + string(filepath.Separator))
|
||||||
}
|
}
|
||||||
|
log.Infof("gcd.assetPath = '%v'\n", gcd.AssetPath())
|
||||||
|
|
||||||
if buildVer != "" {
|
if buildVer != "" {
|
||||||
gcd.SetVersion(buildVer)
|
gcd.SetVersion(buildVer)
|
||||||
|
|
Reference in New Issue