Merge pull request #159 from amnezia-vpn/bugfix/linux-uninstall
bugfix/linux-uninstall
This commit is contained in:
commit
638c3492d6
3 changed files with 6 additions and 3 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -127,3 +127,6 @@ captures/
|
||||||
# Android Profiling
|
# Android Profiling
|
||||||
*.hprof
|
*.hprof
|
||||||
client/3rd/ShadowSocks/ss_ios.xcconfig
|
client/3rd/ShadowSocks/ss_ios.xcconfig
|
||||||
|
|
||||||
|
# UML generated pics
|
||||||
|
out/
|
|
@ -26,7 +26,7 @@ function appInstalled()
|
||||||
} else if (runningOnMacOS()){
|
} else if (runningOnMacOS()){
|
||||||
appInstalledUninstallerPath = "/Applications/" + appName() + ".app/maintenancetool.app/Contents/MacOS/maintenancetool";
|
appInstalledUninstallerPath = "/Applications/" + appName() + ".app/maintenancetool.app/Contents/MacOS/maintenancetool";
|
||||||
} else if (runningOnLinux()){
|
} else if (runningOnLinux()){
|
||||||
allInstalledUninstallerPath = "/opt/" + appName();
|
appInstalledUninstallerPath = "/opt/" + appName() + "/maintenancetool";
|
||||||
}
|
}
|
||||||
|
|
||||||
return installer.fileExists(appInstalledUninstallerPath) || installer.fileExists(appInstalledUninstallerPath_x86);
|
return installer.fileExists(appInstalledUninstallerPath) || installer.fileExists(appInstalledUninstallerPath_x86);
|
||||||
|
@ -49,7 +49,7 @@ function runningOnMacOS()
|
||||||
|
|
||||||
function runningOnLinux()
|
function runningOnLinux()
|
||||||
{
|
{
|
||||||
return (installer.value("os") === "linux");
|
return ((installer.value("os") === "linux") || (installer.value("os") === "x11"));
|
||||||
}
|
}
|
||||||
|
|
||||||
function sleep(miliseconds) {
|
function sleep(miliseconds) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue