Feat: store - support multiple platforms

This commit is contained in:
2024-03-19 18:34:45 +08:00
parent 8730513340
commit 61d3bb21ad
16 changed files with 433 additions and 109 deletions

View File

@@ -18,6 +18,7 @@ if (!app.isPackaged) {
}
args.push('--')
app.setAsDefaultProtocolClient(import.meta.env.VITE_PROTOCOL, process.execPath, args)
// app.removeAsDefaultProtocolClient(import.meta.env.VITE_PROTOCOL, process.execPath, args)
const handleArgv = (argv: string[]) => {
const prefix = `${import.meta.env.VITE_PROTOCOL}:`