feat: support release windows installer with squirrel (#1965)

Co-authored-by: Himself65 <himself65@outlook.com>
This commit is contained in:
Horus
2023-04-17 08:28:29 +08:00
committed by GitHub
parent c76bbeab67
commit 134e1e8668
5 changed files with 30 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ import { registerHandlers } from './app-state';
import { restoreOrCreateWindow } from './main-window';
import { registerProtocol } from './protocol';
if (require('electron-squirrel-startup')) app.exit();
if (process.defaultApp) {
if (process.argv.length >= 2) {
app.setAsDefaultProtocolClient('affine', process.execPath, [