mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-06 09:20:33 +00:00
Remove symlink when uninstalling.
This commit is contained in:
parent
f3663cc55e
commit
8bdbcfeaa6
@ -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");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user