chore: add update dialog

This commit is contained in:
2025-07-07 09:41:42 +02:00
parent 43160800ce
commit 15eb9424d4
13 changed files with 185 additions and 11 deletions

View File

@@ -7,6 +7,8 @@
currentSkin,
currentView,
firstStartup,
launcherVersion,
newVersion,
osuBuild,
osuStream,
skins,
@@ -34,6 +36,7 @@
getVersion,
isValidOsuFolder,
} from '@/osuUtil';
import { git } from '@/api/git';
let ezppLogo: HTMLImageElement;
let spinnerCircle: SVGCircleElement;
@@ -139,6 +142,12 @@
}
}
currentLoadingInfo.set('Checking for EZPPLauncher updates...');
const launcherUpdate = await git.hasUpdate($launcherVersion);
if (launcherUpdate) {
newVersion.set(launcherUpdate);
}
animate(ezppLogo, {
opacity: [1, 0],
scale: [1, 1.05],