diff --git a/cmake/installerscript.qs b/cmake/installerscript.qs index f0e3ab89..25ff4c81 100644 --- a/cmake/installerscript.qs +++ b/cmake/installerscript.qs @@ -51,3 +51,15 @@ Component.prototype.createOperations = function() print("ERROR: running post installscript.qs" + e); } } + +Component.prototype.createOperationsForArchive = function(archive) +{ + component.createOperationsForArchive(archive); + + if (systemInfo.productType === "osx") { + var symlinkPath = targetDirectory + "/../GPT4All.app"; + + // Remove the symlink during uninstallation + component.addOperation("Delete", symlinkPath, "UNDOEXECUTE"); + } +}