Skip to content
This repository has been archived by the owner on Jul 18, 2021. It is now read-only.

Commit

Permalink
autoUpdater fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JiveOff committed Jul 15, 2020
1 parent 8a509ce commit d04d08f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
24 changes: 14 additions & 10 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ async function sendTip () {
timeoutType: 'never'
})
notification.show()
notification.onclick = () => {
notification.on('click', (event) => {
Open('https://github.com/JiveOff/roPresence/blob/master/README.md#making-the-game-name-show')
}
})
}
}

Expand Down Expand Up @@ -424,9 +424,9 @@ async function robloxVerify () {
timeoutType: 'never'
})
notification.show()
notification.onclick = () => {
notification.on('click', (event) => {
Open('https://verify.eryn.io/')
}
})
await logToFile('RoVer: API returned an error: ' + result.error)
let count = 0
const retry = setInterval(async () => {
Expand Down Expand Up @@ -498,17 +498,21 @@ async function initUpdater() {
timeoutType: 'never',
icon: path.join(__dirname, 'img/roPresence-logo.png')
})
notification.onclick = () => {
autoUpdater.quitAndInstall()
}
notification.show()
notification.on('click', (event) => {
autoUpdater.quitAndInstall()
})

tray.setToolTip("roPresence - Update downloaded.")
}
)

autoUpdater.setFeedURL(AUTO_UPDATE_URL)
autoUpdater.checkForUpdates()

setInterval(() => {
autoUpdater.checkForUpdates()
}, 10 * 60 * 1000)
}

async function init () {
Expand Down Expand Up @@ -596,10 +600,10 @@ app.whenReady().then(async () => {
timeoutType: 'never',
icon: path.join(__dirname, 'img/no.png')
})
notification.onclick = () => {
Open('Discord.exe')
}
notification.show()
notification.on('click', (event) => {
Open('Discord.exe')
})
await logToFile("Make sure that Discord has been launched and that you're logged in, then launch roPresence again.")
await logToFile('Exiting in 5 seconds...')
setInterval(() => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ropresence",
"version": "2.1.32",
"version": "2.1.33",
"description": "A Discord Rich Presence using the ROBLOX Presence API.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit d04d08f

Please sign in to comment.