mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-08-10 20:31:46 +00:00
installer script: fix detection of macOS on newer QtIFW (#2361)
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
parent
2025d2d15b
commit
e021fe130f
@ -30,7 +30,7 @@ Component.prototype.createOperations = function()
|
|||||||
"workingDirectory=" + targetDirectory + "/bin",
|
"workingDirectory=" + targetDirectory + "/bin",
|
||||||
"iconPath=" + targetDirectory + "/gpt4all.ico",
|
"iconPath=" + targetDirectory + "/gpt4all.ico",
|
||||||
"iconId=0", "description=Open GPT4All");
|
"iconId=0", "description=Open GPT4All");
|
||||||
} else if (systemInfo.productType === "osx") {
|
} else if (systemInfo.productType === "macos" || systemInfo.productType === "osx") {
|
||||||
var gpt4allAppPath = targetDirectory + "/bin/gpt4all.app";
|
var gpt4allAppPath = targetDirectory + "/bin/gpt4all.app";
|
||||||
var symlinkPath = targetDirectory + "/../GPT4All.app";
|
var symlinkPath = targetDirectory + "/../GPT4All.app";
|
||||||
// Remove the symlink if it already exists
|
// Remove the symlink if it already exists
|
||||||
@ -56,7 +56,7 @@ Component.prototype.createOperationsForArchive = function(archive)
|
|||||||
{
|
{
|
||||||
component.createOperationsForArchive(archive);
|
component.createOperationsForArchive(archive);
|
||||||
|
|
||||||
if (systemInfo.productType === "osx") {
|
if (systemInfo.productType === "macos" || systemInfo.productType === "osx") {
|
||||||
var uninstallTargetDirectory = installer.value("TargetDir");
|
var uninstallTargetDirectory = installer.value("TargetDir");
|
||||||
var symlinkPath = uninstallTargetDirectory + "/../GPT4All.app";
|
var symlinkPath = uninstallTargetDirectory + "/../GPT4All.app";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user