github.com/xtls/xray-core@v1.8.12-0.20240518155711-3168d27b0bdb/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 }