Files
DndGamePlayer/docs/GITEA_AUTO_UPDATE.md
T
Ivan Fontosh 9f82a541fc chore(release): point updater feed at updates.mailib.ru (v1.0.16)
Set build.publish.url to the production HTTPS feed, bump version to 1.0.16, add publish-to-updates.ps1 for VPS upload, and normalize Linux AppImage names from x86_64 to x64 after pack:linux.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-18 00:55:53 +08:00

53 lines
2.0 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.
# Автообновления TTRPG Player
## Сборка и публикация
- Релизы собираются **локально** (CI отключён).
- Артефакты кладутся в `D:\TTRPG-Release\` (или копируются из `release\` после сборки).
- Публикация на VPS: `powershell -ExecutionPolicy Bypass -File scripts\publish-to-updates.ps1`
- **Имена файлов без версии** — версия только в `latest*.yml`.
## Feed URL
В `package.json``build.publish.url`:
`https://updates.mailib.ru/`
Обязателен **слэш в конце**. URL вшивается в установщик при `npm run pack:win`.
## Фиксированные имена артефактов
| Платформа | Файлы |
|-----------|--------|
| Windows | `latest.yml`, `TTRPGPlayer-Setup.exe`, `TTRPGPlayer-Setup.exe.blockmap` |
| Linux | `latest-linux.yml`, `TTRPGPlayer-x64.AppImage`, `TTRPGPlayer-arm64.AppImage` |
| macOS | `latest-mac.yml`, `TTRPGPlayer-x64.dmg`, `TTRPGPlayer-arm64.dmg` |
## Локальная сборка
```bash
npm ci
npm run build
npm run release:info
```
| Команда | Где | Результат |
|---------|-----|-----------|
| `npm run pack:win` | Windows | `release\` — Win + `latest.yml` |
| `npm run pack:linux` | Linux / WSL | AppImage + `latest-linux*.yml` |
| `npm run pack:mac` | macOS | dmg + `latest-mac.yml` |
Linux из PowerShell напрямую не собирается — только WSL/Linux (`scripts/release-linux-pack.mjs`).
После `pack:win` скопируйте из `release\` в `D:\TTRPG-Release\` файлы из таблицы выше.
## Сервер
- Домен: `https://updates.mailib.ru/`
- nginx `root`: `/var/www/updates_mailib_ru`
- Проверка: `curl https://updates.mailib.ru/latest.yml`
## Лицензия
Обновления доступны при активной лицензии. Ключи: `TTRPG-…` и устаревшие `DND-…`.