elfisa-pharmacy/docs/gitea-updates.md
Exest b69e1b4498 Add forced update check against Gitea releases.
Block startup when a newer Release exists; keep offline pharmacies working.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-31 12:58:36 +03:00

25 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Gitea + принудительные обновления десктопа
Полная инструкция по установке Gitea: в репозитории `source``docs/gitea/`.
Клиент при старте (`ElectroPharmacy_Load`) вызывает Gitea API:
`GET {UpdateCheckBaseUrl}/api/v1/repos/{UpdateRepo}/releases/latest`
Настройки (можно сменить без пересборки через user settings):
| Ключ | По умолчанию |
|------|----------------|
| `UpdateCheckBaseUrl` | `https://git.24pharmdata.ru` |
| `UpdateRepo` | `pharmdata/elfisa-pharmacy` |
| `UpdateApiToken` | пусто (нужен для private releases) |
## Регламент релиза
1. Поднять `AssemblyVersion` / `AssemblyFileVersion` в `Properties/AssemblyInfo.cs`.
2. `git tag vX.Y.Z && git push gitea master --tags`
3. `powershell -File dist\build-release.ps1`
4. Gitea → Releases → New Release → прикрепить ZIP.
Старый клиент с меньшей версией увидит модалку «Доступно новое обновление» и не пустит в работу.