aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md6
-rw-r--r--src/utils.js10
2 files changed, 10 insertions, 6 deletions
diff --git a/README.md b/README.md
index 9d425d0..ca98f9e 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
<p align="center">
<img src="src/assets/icons/512x512.png" width="200px"><br>
- <a href="https://github.com/0neGal/viper/releases/download/v1.2.2/Viper-Setup-1.2.2.exe"><img src="assets/download.png" width="300px"></a><br>
+ <a href="https://github.com/0neGal/viper/releases/download/v1.2.3/Viper-Setup-1.2.3.exe"><img src="assets/download.png" width="300px"></a><br>
<a href="https://github.com/0neGal/viper/projects/1">Overview</a> |
<a href="https://github.com/0neGal/viper/releases">Releases</a><br>
</p>
@@ -15,9 +15,9 @@ Downloads are available on the [releases page](https://github.com/0neGal/viper/r
Please note that some versions will update themselves automatically when a new release is available (just like Origin or Steam) and some will NOT, so choose it accordingly. Only the AppImage and Windows Setup/Installer can auto-update.
-**Windows:** [`Viper Setup [x.y.z].exe`](https://github.com/0neGal/viper/releases/download/v1.2.2/Viper-Setup-1.2.2.exe) (auto-updates, and is recommanded), [`Viper [x.y.z].exe`](https://github.com/0neGal/viper/releases/download/v1.2.2/Viper-1.2.2.exe) (single executable, no fuss)
+**Windows:** [`Viper Setup [x.y.z].exe`](https://github.com/0neGal/viper/releases/download/v1.2.3/Viper-Setup-1.2.3.exe) (auto-updates, and is recommanded), [`Viper [x.y.z].exe`](https://github.com/0neGal/viper/releases/download/v1.2.3/Viper-1.2.3.exe) (single executable, no fuss)
-**Linux:** [`.AppImage`](https://github.com/0neGal/viper/releases/download/v1.2.2/Viper-1.2.2.AppImage) (auto-updates), [`.deb`](https://github.com/0neGal/viper/releases/download/v1.2.2/viper-1.2.2_amd64.deb), [`.rpm`](https://github.com/0neGal/viper/releases/download/v1.2.2/Viper-1.2.2.x86_64.rpm), [`.tar.gz`](https://github.com/0neGal/viper/releases/download/v1.2.2/Viper-1.2.2.tar.gz)
+**Linux:** [`.AppImage`](https://github.com/0neGal/viper/releases/download/v1.2.3/Viper-1.2.3.AppImage) (auto-updates), [`.deb`](https://github.com/0neGal/viper/releases/download/v1.2.3/viper-1.2.3_amd64.deb), [`.rpm`](https://github.com/0neGal/viper/releases/download/v1.2.3/Viper-1.2.3.x86_64.rpm), [`.tar.gz`](https://github.com/0neGal/viper/releases/download/v1.2.3/Viper-1.2.3.tar.gz)
## What can it do specifically?
diff --git a/src/utils.js b/src/utils.js
index 2ea91cd..336017f 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -73,9 +73,9 @@ async function isGameRunning() {
//
// It uses isGameRunning() to ensure it doesn't run while the game is
// running, as that may have all kinds of issues.
-northstar_auto_updates: {
+function handleNorthstarAutoUpdating() {
if (!settings.autoupdate || !fs.existsSync("viper.json") || settings.gamepath.length === 0) {
- break northstar_auto_updates;
+ return;
}
async function _checkForUpdates() {
@@ -306,7 +306,11 @@ function updatevp(autoinstall) {
}
autoUpdater.on("error", (info) => {cli.exit(1)});
- autoUpdater.on("update-not-available", (info) => {cli.exit()});
+ autoUpdater.on("update-not-available", (info) => {
+ // only check for N* updates if Viper itself has no updates
+ handleNorthstarAutoUpdating();
+ cli.exit();
+ });
autoUpdater.checkForUpdatesAndNotify();
}