Skip to content

Commit

Permalink
installer script: fix detection of macOS on newer QtIFW (#2361)
Browse files Browse the repository at this point in the history
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
  • Loading branch information
cebtenzzre committed May 17, 2024
1 parent 2025d2d commit e021fe1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gpt4all-chat/cmake/installerscript.qs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Component.prototype.createOperations = function()
"workingDirectory=" + targetDirectory + "/bin",
"iconPath=" + targetDirectory + "/gpt4all.ico",
"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 symlinkPath = targetDirectory + "/../GPT4All.app";
// Remove the symlink if it already exists
Expand All @@ -56,7 +56,7 @@ Component.prototype.createOperationsForArchive = function(archive)
{
component.createOperationsForArchive(archive);

if (systemInfo.productType === "osx") {
if (systemInfo.productType === "macos" || systemInfo.productType === "osx") {
var uninstallTargetDirectory = installer.value("TargetDir");
var symlinkPath = uninstallTargetDirectory + "/../GPT4All.app";

Expand Down

0 comments on commit e021fe1

Please sign in to comment.