mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
[Repair Utility] TBX-8949: detect new Toolbox install locations
GitOrigin-RevId: 861ecde45c5bba4f3c88ef503726bbfb46ffc3b1
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ec2cd24078
commit
963398ea2b
@@ -56,8 +56,8 @@ var (
|
||||
possibleBaseFileNames = []string{"appcode", "clion", "datagrip", "dataspell", "goland", "idea", "phpstorm", "pycharm", "rubymine", "webstorm", "rider", "Draft", "aqua"}
|
||||
possibleBinariesPaths = map[string][]string{
|
||||
"darwin": {"$HOME/Applications/*.app/Contents/MacOS/{possibleBaseFileName}", "/Applications/*.app/Contents/MacOS/{possibleBaseFileName}", "$HOME/Library/Application Support/JetBrains/Toolbox/apps/*/ch-*/*/*.app/Contents/MacOS/{possibleBaseFileName}"},
|
||||
"linux": {"$HOME/.local/share/JetBrains/Toolbox/apps/*/ch-*/*/bin/{possibleBaseFileName}.sh"},
|
||||
"windows": {os.Getenv("HOMEDRIVE") + "/Program Files/JetBrains/*" + IdeBinaryRelatedToInstallationPath["windows"], os.Getenv("LOCALAPPDATA") + "/JetBrains/Toolbox/apps/*/ch-*/*" + IdeBinaryRelatedToInstallationPath["windows"]},
|
||||
"linux": {"$HOME/.local/share/JetBrains/Toolbox/apps/*/ch-*/*/bin/{possibleBaseFileName}.sh", "$HOME/.local/share/JetBrains/Toolbox/apps/*/bin/{possibleBaseFileName}.sh"},
|
||||
"windows": {os.Getenv("HOMEDRIVE") + "/Program Files/JetBrains/*" + IdeBinaryRelatedToInstallationPath["windows"], os.Getenv("LOCALAPPDATA") + "/JetBrains/Toolbox/apps/*/ch-*/*" + IdeBinaryRelatedToInstallationPath["windows"], os.Getenv("LOCALAPPDATA") + "/Programs/*" + IdeBinaryRelatedToInstallationPath["windows"]},
|
||||
}
|
||||
IdeBinaryRelatedToInstallationPath = map[string]string{
|
||||
"darwin": "/Contents/MacOS/{possibleBaseFileName}",
|
||||
|
||||
@@ -44,7 +44,7 @@ func SelectIdeaBinary() (path string, err error) {
|
||||
}
|
||||
func beautifyPackageName(idePackage string) string {
|
||||
if strings.Contains(idePackage, "oolbox") {
|
||||
return "From ToolBox app"
|
||||
return "From Toolbox App"
|
||||
}
|
||||
return idePackage
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user