@@ -13,9 +13,9 @@ const (
1313 PythonDir = "python"
1414 // GoDir is the directory name for Go installation
1515 GoDir = "go"
16- // Msys2Dir is the directory name for MSYS2 installation
17- Msys2Dir = "msys2 "
18- Msys2Root = Msys2Dir + "/msys64 "
16+ // MingwDir is the directory name for Mingw installation
17+ MingwDir = "mingw "
18+ MingwRoot = MingwDir + "/mingw64 "
1919
2020 TinyPkgConfigDir = "tiny-pkg-config"
2121)
@@ -60,12 +60,12 @@ func GetGoCacheDir(projectPath string) string {
6060 return filepath .Join (GetGoRoot (projectPath ), "go-build" )
6161}
6262
63- func GetMsys2Dir (projectPath string ) string {
64- return filepath .Join (projectPath , DepsDir , Msys2Dir )
63+ func GetMingwDir (projectPath string ) string {
64+ return filepath .Join (projectPath , DepsDir , MingwDir )
6565}
6666
67- func GetMsys2Root (projectPath string ) string {
68- return filepath .Join (projectPath , DepsDir , Msys2Root )
67+ func GetMingwRoot (projectPath string ) string {
68+ return filepath .Join (projectPath , DepsDir , MingwRoot )
6969}
7070
7171func GetTinyPkgConfigDir (projectPath string ) string {
@@ -80,7 +80,7 @@ func SetEnv(projectPath string) {
8080 path := os .Getenv ("PATH" )
8181 path = GetGoBinDir (absPath ) + pathSeparator () + path
8282 if runtime .GOOS == "windows" {
83- path = GetMsys2Root (absPath ) + pathSeparator () + path
83+ path = GetMingwRoot (absPath ) + pathSeparator () + path
8484 path = GetTinyPkgConfigDir (absPath ) + pathSeparator () + path
8585 }
8686 os .Setenv ("PATH" , path )
0 commit comments