mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-23 02:00:20 +07:00
updated linux build
This commit is contained in:
@@ -28,6 +28,11 @@ function runningOnMacOS()
|
||||
return (systemInfo.kernelType === "darwin");
|
||||
}
|
||||
|
||||
function runningOnLinux()
|
||||
{
|
||||
return (systemInfo.kernelType === "linux");
|
||||
}
|
||||
|
||||
function vcRuntimeIsInstalled()
|
||||
{
|
||||
return (installer.findPath("msvcp140.dll", [installer.value("RootDir")+ "\\Windows\\System32\\"]).length !== 0)
|
||||
@@ -86,6 +91,8 @@ Component.prototype.createOperations = function()
|
||||
|
||||
} else if (runningOnMacOS()) {
|
||||
component.addElevatedOperation("Execute", "@TargetDir@/post_install.sh", "UNDOEXECUTE", "@TargetDir@/post_uninstall.sh");
|
||||
} else if (runningOnLinux()) {
|
||||
component.addElevatedOperation("Execute", "bash", "@TargetDir@/post_install.sh", "UNDOEXECUTE", "bash", "@TargetDir@/post_uninstall.sh");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -112,7 +119,9 @@ Component.prototype.installationFinished = function()
|
||||
|
||||
} else if (runningOnMacOS()) {
|
||||
command = "/Applications/" + appName() + ".app/Contents/MacOS/" + appName();
|
||||
}
|
||||
} else if (runningOnLinux()) {
|
||||
command = "@TargetDir@/client/" + appName();
|
||||
}
|
||||
|
||||
installer.dropAdminRights()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user