Correct the macOS symlink.

pull/520/head
Adam Treat 1 year ago
parent a9bbe3f949
commit 3f7852f384

@ -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)

@ -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

Loading…
Cancel
Save