mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
Remove posibility to store alpha version in LastAppVersion and clear this var when user already stored an alpha version
This commit is contained in:
@@ -53,6 +53,14 @@ export default function App() {
|
||||
const appVersion = await lastValueFrom(autoUpdater.getAppVersion());
|
||||
const lastAppVersion = autoUpdater.getLastAppVersion();
|
||||
|
||||
if (lastAppVersion.toLowerCase().includes("alpha")) {
|
||||
autoUpdater.setLastAppVersion("0"); // Reset last app version if it's an alpha version for users with alpha versions in the var stored.
|
||||
}
|
||||
|
||||
if (appVersion.toLowerCase().includes("alpha")) {
|
||||
return;
|
||||
}
|
||||
|
||||
autoUpdater.setLastAppVersion(appVersion);
|
||||
|
||||
if (parse(lastAppVersion) && gt(appVersion, lastAppVersion)) {
|
||||
|
||||
Reference in New Issue
Block a user