debugging auto updater

This commit is contained in:
Andrew Gundersen 2021-04-16 12:00:04 -05:00
commit ff5db54ac1
2 changed files with 11 additions and 3 deletions

View file

@ -1,6 +1,6 @@
{
"name": "Crimata",
"version": "0.9.6",
"version": "0.9.7",
"private": true,
"description": "Cross-platform messenger application built with electron, vue3, and TS.",
"author": {
@ -69,7 +69,15 @@
"lintOnSave": false,
"pluginOptions": {
"electronBuilder": {
"preload": "src/preload.ts"
"preload": "src/preload.ts",
"builderOptions": {
"appId": "com.crimata.ElectronUpdaterApp",
"artifactName": "${productName}-${version}.${ext}",
"publish": {
"provider": "generic",
"url": "https://gitlab.com/api/v4/projects/25637892/jobs/artifacts/master/dist_electron?job=build"
}
}
}
}
},

View file

@ -16,7 +16,7 @@ backgroundMitt.on('window-active', (state: boolean) => {
// Auto updating.
const { autoUpdater } = require('electron-updater')
autoUpdater.requestHeaders = { 'PRIVATE-TOKEN': 'seMF_apn237iUw8puG9a' }
autoUpdater.requestHeaders = { 'PRIVATE-TOKEN': 'mvvgWYwWnot4bisiQMh_' }
autoUpdater.on('update-available', (info: any) => {
console.log(`Update available: ${info.version}`)