feat: enable update system with localhost:8000 server
Some checks failed
Release / build-release (push) Waiting to run
CI / run (push) Has been cancelled

This commit is contained in:
Umbrix Developer
2026-01-18 06:56:35 +03:00
parent 8c5696b6aa
commit e79b508531
4 changed files with 400 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ abstract class Constants {
static const githubUrl = "https://github.com/umbrix-app/umbrix";
static const githubReleasesApiUrl = "https://api.github.com/repos/umbrix-app/umbrix/releases";
static const githubLatestReleaseUrl = "https://github.com/umbrix-app/umbrix/releases/latest";
static const appCastUrl = "https://raw.githubusercontent.com/umbrix-app/umbrix/main/appcast.xml";
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";
@@ -15,9 +15,10 @@ abstract class Constants {
// Собственный сервер обновлений (для приватного репозитория)
// 📝 ИНСТРУКЦИЯ: Замените на URL вашего API сервера
// Пример: "https://api.umbrix.net/api/latest"
// 🧪 Для тестирования в эмуляторе используйте: "http://10.0.2.2:8000/api.php"
// 🖥️ Для Linux десктопа используйте: "http://localhost:8000/api/appcast.xml"
// 📱 Для Android эмулятора используйте: "http://10.0.2.2:8000/api/appcast.xml"
// См. документацию в папке: update-server/README.md
static const customUpdateServerUrl = "http://10.0.2.2:8000/api.php";
static const customUpdateServerUrl = "http://localhost:8000/api/appcast.xml";
// Использовать собственный сервер обновлений вместо GitHub
// true = использовать customUpdateServerUrl (для приватного репозитория)