Skip to content

Commit

Permalink
chore: update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
chenfan0 committed Oct 30, 2024
1 parent edbe412 commit 0c08f8a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 2 additions & 8 deletions electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ win:
- "arm64"
executableName: fideo
extraFiles:
- from: "./resources/frpc.exe"
to: "Resources"
- from: "./resources/iconTemplate.png"
to: "Resources"
- from: "./resources/index.html"
- from: "./resources"
to: "Resources"
nsis:
oneClick: false
Expand All @@ -49,9 +45,7 @@ mac:
notarize: false
identity: null
extraFiles:
- from: "./resources/iconTemplate.png"
to: "Resources"
- from: "./resources/index.html"
- from: "./resources"
to: "Resources"
dmg:
artifactName: ${name}-${version}-${arch}.${ext}
Expand Down
8 changes: 7 additions & 1 deletion src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ async function createWindow() {

win = mainWindow

mainWindow.setTitle('Fideo')

mainWindow.on('ready-to-show', () => {
mainWindow.show()
})
Expand Down Expand Up @@ -418,7 +420,11 @@ app.whenReady().then(async () => {
// On macOS it's common to re-create a window in the app when the
// dock icon is clicked and there are no other windows open.
if (BrowserWindow.getAllWindows().length === 0) {
await createWindow()
if (win) {
win.show()
} else {
await createWindow()
}
}
})
})
Expand Down

0 comments on commit 0c08f8a

Please sign in to comment.