From 5cf229db2ef842a242364a7e8c6efd6b269dea83 Mon Sep 17 00:00:00 2001 From: Xterionix <72647213+Xterionix@users.noreply.github.com> Date: Sun, 24 Sep 2023 18:32:41 +0500 Subject: [PATCH] - Disabled update window temporarily - Should fix .exe failing to install on certain cases --- app/renderer/src/AppCycle/startUp.ts | 28 ++++++++++++------------- app/renderer/src/Utilities/updateApp.ts | 4 ++-- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/app/renderer/src/AppCycle/startUp.ts b/app/renderer/src/AppCycle/startUp.ts index 3b27975ae..694276275 100644 --- a/app/renderer/src/AppCycle/startUp.ts +++ b/app/renderer/src/AppCycle/startUp.ts @@ -75,17 +75,17 @@ export default async function startUp() { export function createAppUpdateNotification() { // Fetch the latest json/version data - fetchLatestJson().then(updateData => { - if (updateData.update_available) { - // If there's an update, notify the user - const notification = createNotification({ - icon: 'mdi-update', - message: 'Update Available', - textColor: 'white', - onClick: () => { - new UpdateWindow(updateData, notification) - }, - }) - } - }) -} + // fetchLatestJson().then(updateData => { + // if (updateData.update_available) { + // // If there's an update, notify the user + // const notification = createNotification({ + // icon: 'mdi-update', + // message: 'Update Available', + // textColor: 'white', + // onClick: () => { + // new UpdateWindow(updateData, notification) + // }, + // }) + // } + // }) +} \ No newline at end of file diff --git a/app/renderer/src/Utilities/updateApp.ts b/app/renderer/src/Utilities/updateApp.ts index 2509d03d7..259dafe63 100644 --- a/app/renderer/src/Utilities/updateApp.ts +++ b/app/renderer/src/Utilities/updateApp.ts @@ -34,7 +34,7 @@ export async function updateApp(urls: Array) { // User's OS isn't supported by the updater lw.close() // Close the loading window shell.openExternal( - 'https://github.com/bridge-core/bridge./releases/latest' + 'https://github.com/Xterionix/bridge./releases/latest' ) return } @@ -59,7 +59,7 @@ export async function fetchLatestJson() { let res: newVersionRes = {} await fetch( - 'https://api.github.com/repos/bridge-core/bridge./releases/latest' + 'https://api.github.com/repos/Xterionix/bridge./releases/latest' ) .then(data => data.json()) .then(data => {