mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-06-21 21:19:08 +00:00
Signed-off-by: Jared Van Bortel <jared@nomic.ai> Signed-off-by: AT <manyoso@users.noreply.github.com> Co-authored-by: AT <manyoso@users.noreply.github.com>
20 lines
803 B
Plaintext
20 lines
803 B
Plaintext
function Component()
|
|
{
|
|
component.ifwVersion = installer.value("FrameworkVersion");
|
|
installer.installationStarted.connect(this, Component.prototype.onInstallationStarted);
|
|
}
|
|
|
|
Component.prototype.onInstallationStarted = function()
|
|
{
|
|
if (component.updateRequested() || component.installationRequested()) {
|
|
if (installer.value("os") == "win") {
|
|
component.installerbaseBinaryPath = "@TargetDir@/installerbase.exe";
|
|
} else if (installer.value("os") == "x11") {
|
|
component.installerbaseBinaryPath = "@TargetDir@/installerbase";
|
|
} else if (installer.value("os") == "mac") {
|
|
component.installerbaseBinaryPath = "@TargetDir@/MaintenanceTool.app";
|
|
}
|
|
installer.setInstallerBaseBinary(component.installerbaseBinaryPath);
|
|
}
|
|
}
|