(_win)
| 301 | * 控制台通过:window.api.app.simulateUpdate() 测试 |
| 302 | */ |
| 303 | const simulateUpdateDialog = (_win) => { |
| 304 | dialog.showMessageBox({ |
| 305 | title: t('update.newVersionTitle', { version: '9.9.9' }), |
| 306 | message: t('update.newVersionMessage', { version: '9.9.9' }), |
| 307 | detail: t('update.newVersionDetail'), |
| 308 | buttons: [t('update.downloadNow'), t('update.cancel')], |
| 309 | defaultId: 0, |
| 310 | cancelId: 1, |
| 311 | type: 'question', |
| 312 | noLink: true, |
| 313 | }) |
| 314 | } |
| 315 | |
| 316 | export { checkUpdate, simulateUpdateDialog, manualCheckForUpdates } |
no test coverage detected