Don't delete symlink unless we're uninstalling.

This commit is contained in:
Adam Treat 2023-04-28 22:07:37 -04:00
parent 8bdbcfeaa6
commit 49d55dd295
3 changed files with 11 additions and 1 deletions

View File

@ -60,6 +60,8 @@ Component.prototype.createOperationsForArchive = function(archive)
var symlinkPath = targetDirectory + "/../GPT4All.app"; var symlinkPath = targetDirectory + "/../GPT4All.app";
// Remove the symlink during uninstallation // Remove the symlink during uninstallation
component.addOperation("Delete", symlinkPath, "UNDOEXECUTE"); if (installer.isUninstaller()) {
component.addOperation("Execute", "rm", "-f", symlinkPath, "UNDOEXECUTE");
}
} }
} }

View File

@ -349,6 +349,10 @@ Dialog {
Accessible.role: Accessible.ToolTip Accessible.role: Accessible.ToolTip
Accessible.name: modelPathDisplayLabel.text Accessible.name: modelPathDisplayLabel.text
Accessible.description: ToolTip.text Accessible.description: ToolTip.text
background: Rectangle {
color: theme.backgroundLighter
radius: 10
}
} }
Button { Button {
text: qsTr("Browse") text: qsTr("Browse")

View File

@ -565,6 +565,10 @@ The prompt below is a question to answer, a task to complete, or a conversation
Accessible.role: Accessible.ToolTip Accessible.role: Accessible.ToolTip
Accessible.name: modelPathDisplayLabel.text Accessible.name: modelPathDisplayLabel.text
Accessible.description: ToolTip.text Accessible.description: ToolTip.text
background: Rectangle {
color: theme.backgroundLighter
radius: 10
}
} }
Button { Button {
Layout.row: 1 Layout.row: 1