Correct the macOS symlink.

This commit is contained in:
Adam Treat 2023-04-28 21:26:38 -04:00
parent a9bbe3f949
commit 3f7852f384
2 changed files with 3 additions and 2 deletions

View File

@ -182,6 +182,7 @@ set(CPACK_IFW_PACKAGE_LOGO "${CMAKE_CURRENT_SOURCE_DIR}/icons/logo-256.png")
set(CPACK_IFW_PACKAGE_WINDOW_ICON "${CMAKE_CURRENT_SOURCE_DIR}/icons/logo-256.png")
set(CPACK_IFW_PACKAGE_WIZARD_SHOW_PAGE_LIST OFF)
include(InstallRequiredSystemLibraries)
include(CPack)
include(CPackIFW)
cpack_add_component(${COMPONENT_NAME_MAIN} DOWNLOADED)

View File

@ -31,8 +31,8 @@ Component.prototype.createOperations = function()
"iconPath=" + targetDirectory + "/favicon.ico",
"iconId=0", "description=Open GPT4All");
} else if (systemInfo.productType === "osx") {
var gpt4allAppPath = targetDirectory + "/gpt4all/gpt4all.app";
var symlinkPath = targetDirectory + "/GPT4All.app";
var gpt4allAppPath = targetDirectory + "/bin/gpt4all/gpt4all.app";
var symlinkPath = targetDirectory + "/../GPT4All.app";
// Remove the symlink if it already exists
component.addOperation("Execute", "rm", "-f", symlinkPath);
// Create the symlink