Desktop: Install CLI (#6526)
Co-authored-by: Brendan Allan <git@brendonovich.dev>
This commit is contained in:
parent
ced093e646
commit
8e9a0c4ad0
7 changed files with 364 additions and 185 deletions
|
|
@ -2,6 +2,7 @@ import { Menu, MenuItem, PredefinedMenuItem, Submenu } from "@tauri-apps/api/men
|
|||
import { type as ostype } from "@tauri-apps/plugin-os"
|
||||
|
||||
import { runUpdater, UPDATER_ENABLED } from "./updater"
|
||||
import { installCli } from "./cli"
|
||||
|
||||
export async function createMenu() {
|
||||
if (ostype() !== "macos") return
|
||||
|
|
@ -19,6 +20,10 @@ export async function createMenu() {
|
|||
action: () => runUpdater({ alertOnFail: true }),
|
||||
text: "Check For Updates...",
|
||||
}),
|
||||
await MenuItem.new({
|
||||
action: () => installCli(),
|
||||
text: "Install CLI...",
|
||||
}),
|
||||
await PredefinedMenuItem.new({
|
||||
item: "Separator",
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue