使用electron-vite构建项目
pnpm create @quick-start/electron
修改项目的package.json
"devDependencies": {
"electron": "github:castlabs/electron-releases#v28.2.0+wvcus",
},
"build": {
"electronDownload": {
"mirror": "https://github.com/castlabs/electron-releases/releases/download/v"
}
}
可以注释项目中有关electronDownload
的项,下载electron
依赖需要魔法
修改userAgent
const userAgent = 'Chrome/120.0.6099.227'
spotifyWindow.loadURL('https://open.spotify.com/', { userAgent })
添加electron的DRM版权
python -m castlabs_evs.vmp sign-pkg node_modules/electron/dist