mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-04 12:00:10 +00:00
Remove symlink when uninstalling.
This commit is contained in:
parent
22441a460b
commit
bba50d1aec
@ -51,3 +51,15 @@ Component.prototype.createOperations = function()
|
|||||||
print("ERROR: running post installscript.qs" + e);
|
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