feat: Windows support - auto-update system + proper app icon
Some checks failed
CI / run (push) Has been cancelled

- PowerShell silent installer with UAC elevation
- Smart asset detection (x64 priority for .exe)
- Cross-platform restart after update
- Auto-check updates on launch (5 sec delay)
- Multi-layer .ico with 6 sizes (16-256px)
- Windows build documentation added
This commit is contained in:
Umbrix Developer
2026-01-19 17:48:21 +03:00
parent 95383d09fc
commit 796c223d44
8 changed files with 368 additions and 14 deletions

View File

@@ -84,4 +84,21 @@ class AppUpdateNotifier extends _$AppUpdateNotifier with AppLogger {
await _ignoreReleasePref.write(version.version);
state = AppUpdateStateIgnored(version);
}
/// Тихая проверка обновлений (без изменения UI состояния если нет обновлений)
/// Используется при запуске приложения
Future<void> checkSilently() async {
loggy.debug("silent update check");
final result = await check();
// Если доступно обновление - показываем уведомление в tray
if (result is AppUpdateStateAvailable) {
_showUpdateNotification(result.versionInfo);
}
}
void _showUpdateNotification(RemoteVersionEntity version) {
// TODO: Реализовать уведомление через system tray
loggy.info("new version available: ${version.version}");
}
}