Skip to content

Commit

Permalink
feat: add new static version and auto open ui (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cafe137 authored Jun 20, 2022
1 parent 39bf2b4 commit 5d43eed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 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/c834220bdd3c84a3e503b873c08ec4858884d81864ae40cd8f5f35756eec86ef/static.zip',
'https://github.com/Cafe137/bee-desktop-static-maker/releases/download/a8d82a50302775c72a57c48597d3e5be7906cc3bfa7f1498e368fe4dc9525049/static.zip',
'static.zip',
{
checkTarget: ['trayTemplate.png', 'static'],
Expand Down
4 changes: 2 additions & 2 deletions src/electron.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function rebuildElectronTray() {
click: redownloadAssets,
},
{
label: 'Exit',
label: 'Quit',
click: async () => {
app.quit()
},
Expand Down Expand Up @@ -59,7 +59,7 @@ export function rebuildElectronTray() {
},
{ type: 'separator' },
{
label: 'Exit',
label: 'Quit',
click: async () => {
BeeManager.stop()
await BeeManager.waitForSigtermToFinish()
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { openInstallerInBrowser } from './browser'
import { openDashboardInBrowser, openInstallerInBrowser } from './browser'
import { runDownloader, waitForInstallerReadiness } from './downloader'
import { runElectronTray } from './electron'
import { runKeepAliveLoop, runLauncher } from './launcher'
Expand Down Expand Up @@ -47,6 +47,7 @@ async function main() {

if (getStatus().hasInitialTransaction) {
runLauncher()
openDashboardInBrowser()
} else {
openInstallerInBrowser()
}
Expand Down

0 comments on commit 5d43eed

Please sign in to comment.