Prevent /usr/local/bin/hyper overwriting (#2885)
Silently fail installation at startup. Add a menu item to manually install it with a notification feedback. Fix plugin update menu item. Fixes #2884
This commit is contained in:
parent
2de45245bf
commit
dfe5ab89fa
5 changed files with 88 additions and 49 deletions
|
|
@ -1,4 +1,4 @@
|
|||
module.exports = (commands, update) => {
|
||||
module.exports = (commands, execCommand) => {
|
||||
return {
|
||||
label: 'Plugins',
|
||||
submenu: [
|
||||
|
|
@ -6,8 +6,17 @@ module.exports = (commands, update) => {
|
|||
label: 'Update',
|
||||
accelerator: commands['plugins:update'],
|
||||
click() {
|
||||
update();
|
||||
execCommand('plugins:update');
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'Install Hyper CLI command in PATH',
|
||||
click() {
|
||||
execCommand('cli:install');
|
||||
}
|
||||
},
|
||||
{
|
||||
type: 'separator'
|
||||
}
|
||||
]
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue