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
32 lines
2.0 KiB
Dart
32 lines
2.0 KiB
Dart
abstract class Constants {
|
||
static const appName = "Umbrix";
|
||
static const githubUrl = "https://update.umbrix.net/vodorod/umbrix";
|
||
static const githubReleasesApiUrl = "https://update.umbrix.net/api/v1/repos/vodorod/umbrix/releases";
|
||
static const githubLatestReleaseUrl = "https://update.umbrix.net/vodorod/umbrix/releases/latest";
|
||
static const appCastUrl = "http://localhost:8000/api/appcast.xml";
|
||
static const telegramChannelUrl = "https://t.me/umbrix_app";
|
||
static const privacyPolicyUrl = "https://umbrix.net/privacy.html";
|
||
static const termsAndConditionsUrl = "https://umbrix.net/terms.html";
|
||
static const cfWarpPrivacyPolicy = "https://www.cloudflare.com/application/privacypolicy/";
|
||
static const cfWarpTermsOfService = "https://www.cloudflare.com/application/terms/";
|
||
|
||
// ===== НАСТРОЙКИ СЕРВЕРА ОБНОВЛЕНИЙ =====
|
||
|
||
// Собственный сервер обновлений (для приватного репозитория)
|
||
// 📝 ИНСТРУКЦИЯ: Замените на URL вашего API сервера
|
||
// Пример: "https://api.umbrix.net/api/latest"
|
||
// 🖥️ Для Linux десктопа используйте: "http://localhost:8000/api/appcast.xml"
|
||
// 📱 Для Android эмулятора используйте: "http://10.0.2.2:8000/api/appcast.xml"
|
||
// См. документацию в папке: update-server/README.md
|
||
|
||
// ТЕСТ: Используем httpbin.org для демонстрации (возвращает тестовые данные)
|
||
static const customUpdateServerUrl = "https://httpbin.org/json";
|
||
|
||
// Использовать собственный сервер обновлений вместо GitHub
|
||
// true = использовать customUpdateServerUrl (для приватного репозитория)
|
||
// false = использовать GitHub Releases (для публичного репозитория)
|
||
static const useCustomUpdateServer = false;
|
||
}
|
||
|
||
const kAnimationDuration = Duration(milliseconds: 250);
|