fix assetPath on windows #354

Merged
sarah merged 4 commits from winassetPath into master 2020-10-28 23:58:16 +00:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit 8337c92f45 - Show all commits

View File

@ -167,8 +167,9 @@ func mainUi(flagLocal bool, flagClientUI bool) {
if runtime.GOOS == "windows" {
dir = "/" + dir
}
gcd.SetAssetPath("file://" + filepath.Join(dir, "assets") + "/")
gcd.SetAssetPath("file://" + filepath.Join(dir, "assets") + string(filepath.Separator))
}
log.Infof("gcd.assetPath = '%v'\n", gcd.AssetPath())
if buildVer != "" {
gcd.SetVersion(buildVer)