Skip to content

Commit

Permalink
feat: add new assets and static
Browse files Browse the repository at this point in the history
  • Loading branch information
Cafe137 committed Jun 15, 2022
1 parent 01452e5 commit 07ae295
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/downloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export async function runDownloader(force = false): Promise<void> {
}
await ensureDir(paths.data)
await ensureAsset(
'https://github.com/Cafe137/bee-desktop-static-maker/releases/download/3ccdba68b93095a1daa29656b4ee989649858fadffaf6b92500488c71dc3bd34/static.zip',
'https://github.com/Cafe137/bee-desktop-static-maker/releases/download/c834220bdd3c84a3e503b873c08ec4858884d81864ae40cd8f5f35756eec86ef/static.zip',
'static.zip',
{
checkTarget: 'static',
Expand Down
13 changes: 7 additions & 6 deletions src/electron.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ export function rebuildElectronTray() {
return
}
const contextMenu = Menu.buildFromTemplate([
{
label: 'Open Web UI',
click: openDashboardInBrowser,
},
{ type: 'separator' },
{
label: BeeManager.isRunning() ? 'Stop Bee' : 'Start Bee',
click: () => {
Expand All @@ -48,15 +53,11 @@ export function rebuildElectronTray() {
},
},
{ type: 'separator' },
{
label: 'Open Web UI',
click: openDashboardInBrowser,
},
{ type: 'separator' },
{
label: 'Redownload assets',
click: redownloadAssets,
},
{ type: 'separator' },
{
label: 'Exit',
click: async () => {
Expand Down Expand Up @@ -85,7 +86,7 @@ export function runElectronTray() {
app.dock.setIcon(getPath('icon.png'))
app.dock.hide()
}
tray = new Tray(getPath('tray.png'))
tray = new Tray(getPath('trayTemplate.png'))
rebuildElectronTray()
})
}
Expand Down

0 comments on commit 07ae295

Please sign in to comment.