Skip to content

Commit

Permalink
- Disabled update window temporarily
Browse files Browse the repository at this point in the history
- Should fix .exe failing to install on certain cases
  • Loading branch information
Xterionix committed Sep 24, 2023
1 parent 687a110 commit 5cf229d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
28 changes: 14 additions & 14 deletions app/renderer/src/AppCycle/startUp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
// },
// })
// }
// })
}
4 changes: 2 additions & 2 deletions app/renderer/src/Utilities/updateApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export async function updateApp(urls: Array<string>) {
// 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
}
Expand All @@ -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 => {
Expand Down

0 comments on commit 5cf229d

Please sign in to comment.