github.com/xmplusdev/xmcore@v1.8.11-0.20240412132628-5518b55526af/common/platform/windows.go (about) 1 //go:build windows 2 // +build windows 3 4 package platform 5 6 import "path/filepath" 7 8 func ExpandEnv(s string) string { 9 // TODO 10 return s 11 } 12 13 func LineSeparator() string { 14 return "\r\n" 15 } 16 17 func GetToolLocation(file string) string { 18 toolPath := NewEnvFlag(ToolLocation).GetValue(getExecutableDir) 19 return filepath.Join(toolPath, file+".exe") 20 } 21 22 // GetAssetLocation searches for `file` in the excutable dir 23 func GetAssetLocation(file string) string { 24 assetPath := NewEnvFlag(AssetLocation).GetValue(getExecutableDir) 25 return filepath.Join(assetPath, file) 26 }