updated linux build
This commit is contained in:
parent
26524dd93a
commit
9997fa8f3e
24 changed files with 3257 additions and 7 deletions
|
@ -25,6 +25,8 @@ function appInstalled()
|
|||
appInstalledUninstallerPath_x86 = installer.value("RootDir") + "Program Files (x86)/AmneziaVPN/maintenancetool.exe";
|
||||
} else if (runningOnMacOS()){
|
||||
appInstalledUninstallerPath = "/Applications/" + appName() + ".app/maintenancetool.app/Contents/MacOS/maintenancetool";
|
||||
} else if (runningOnLinux()){
|
||||
allInstalledUninstallerPath = "/opt/" + appName();
|
||||
}
|
||||
|
||||
return installer.fileExists(appInstalledUninstallerPath) || installer.fileExists(appInstalledUninstallerPath_x86);
|
||||
|
@ -45,6 +47,11 @@ function runningOnMacOS()
|
|||
return (installer.value("os") === "mac");
|
||||
}
|
||||
|
||||
function runningOnLinux()
|
||||
{
|
||||
return (installer.value("os") === "linux");
|
||||
}
|
||||
|
||||
function sleep(miliseconds) {
|
||||
var currentTime = new Date().getTime();
|
||||
while (currentTime + miliseconds >= new Date().getTime()) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue