()
| 195 | } |
| 196 | |
| 197 | function initUpdate() { |
| 198 | if (IS_BUILD_FOR_PR) { |
| 199 | return; |
| 200 | } |
| 201 | const timer = setInterval(async () => { |
| 202 | const result = await checkUpdater(); |
| 203 | if (result) { |
| 204 | clearInterval(timer); |
| 205 | } |
| 206 | }, 1000 * 60 * 60); |
| 207 | |
| 208 | if (process.argv.indexOf('--update') !== -1) { |
| 209 | checkUpdater(); |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | let forceQuit = false; |
| 214 |