feat: Windows support - auto-update system + proper app icon
Some checks failed
CI / run (push) Has been cancelled
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:
@@ -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}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user