From 6df4f8783f53f55476d31fde9a340a414038f990 Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Fri, 28 Apr 2023 21:26:38 -0400 Subject: [PATCH] Correct the macOS symlink. --- CMakeLists.txt | 1 + cmake/installerscript.qs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f0e53ba5..a70b27cf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/cmake/installerscript.qs b/cmake/installerscript.qs index a9ce58cb..56dde501 100644 --- a/cmake/installerscript.qs +++ b/cmake/installerscript.qs @@ -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