From 0d9aa16c5000801afe24cab6e1e94f0627954d84 Mon Sep 17 00:00:00 2001 From: Kevin Hoang Date: Mon, 4 Dec 2023 03:43:08 -0600 Subject: [PATCH] added auto update feature --- package.json | 29 +++++++++++++++-------------- release/app/package-lock.json | 4 ++-- release/app/package.json | 4 ++-- src/main/main.ts | 3 ++- src/main/menu.ts | 8 +++++--- 5 files changed, 26 insertions(+), 22 deletions(-) diff --git a/package.json b/package.json index 07863d5..59a2294 100644 --- a/package.json +++ b/package.json @@ -1,23 +1,23 @@ { - "description": "A foundation for scalable desktop apps", + "description": "Anime, Manga, and Light Novel Tracker Desktop Application for Windows. A fast and interactive way for AniList users to track and manage their anime/manga lists. ", "keywords": [ - "electron", - "boilerplate", - "react", - "typescript", - "ts", - "sass", - "webpack", - "hot", - "reload" + "anime", + "manga", + "lightnovel", + "light-novels", + "windows", + "anilist", + "anime-tracker", + "manga-tracker", + "myanimelist" ], - "homepage": "https://github.com/electron-react-boilerplate/electron-react-boilerplate#readme", + "homepage": "https://github.com/ReStartQ/anicour", "bugs": { - "url": "https://github.com/electron-react-boilerplate/electron-react-boilerplate/issues" + "url": "https://github.com/ReStartQ/anicour/issues" }, "repository": { "type": "git", - "url": "git+https://github.com/electron-react-boilerplate/electron-react-boilerplate.git" + "url": "https://github.com/ReStartQ/anicour" }, "license": "GPL-3.0", "author": { @@ -283,11 +283,12 @@ "publish": { "provider": "github", "owner": "ReStartQ", + "releaseType": "release", "repo": "anicour" } }, "collective": { - "url": "https://opencollective.com/electron-react-boilerplate-594" + "url": "" }, "devEngines": { "node": ">=14.x", diff --git a/release/app/package-lock.json b/release/app/package-lock.json index 9e98e64..743c32d 100644 --- a/release/app/package-lock.json +++ b/release/app/package-lock.json @@ -1,12 +1,12 @@ { "name": "anicour", - "version": "1.0.0", + "version": "1.0.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "anicour", - "version": "1.0.0", + "version": "1.0.1", "hasInstallScript": true, "license": "GPL-3.0" } diff --git a/release/app/package.json b/release/app/package.json index 115774f..dce5edb 100644 --- a/release/app/package.json +++ b/release/app/package.json @@ -1,7 +1,7 @@ { "name": "anicour", - "version": "1.0.0", - "description": "A foundation for scalable desktop apps", + "version": "1.0.1", + "description": "Anime, Manga, and Light Novel Tracker Desktop Application for Windows. A fast and interactive way for AniList users to track and manage their anime/manga lists. ", "license": "GPL-3.0", "author": { "name": "ReStartQ", diff --git a/src/main/main.ts b/src/main/main.ts index e660f7e..b54015b 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -24,6 +24,7 @@ class AppUpdater { log.transports.file.level = 'info'; autoUpdater.logger = log; autoUpdater.checkForUpdatesAndNotify(); + autoUpdater.autoInstallOnAppQuit = true; } } @@ -634,7 +635,7 @@ const createWindow = async () => { // Remove this if your app does not use auto updates // eslint-disable-next-line - // new AppUpdater(); + new AppUpdater(); }; /** diff --git a/src/main/menu.ts b/src/main/menu.ts index 8f86dcb..63a6a95 100644 --- a/src/main/menu.ts +++ b/src/main/menu.ts @@ -252,13 +252,15 @@ export default class MenuBuilder { label: 'Help', submenu: [ { - label: 'GitHub', + label: 'Setup', click() { - shell.openExternal('https://github.com/restartq/anicour'); + shell.openExternal( + 'https://github.com/ReStartQ/anicour/blob/main/help/Setup.md', + ); }, }, { - label: 'Setup', + label: 'GitHub', click() { shell.openExternal('https://github.com/restartq/anicour'); },