Files
DndGamePlayer/docs/GITEA_AUTO_UPDATE.md
Ivan Fontosh 744ead383d фикс
2026-05-18 01:09:04 +08:00

54 lines
2.2 KiB
Markdown
Raw Permalink 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\` после сборки).
- Подготовка релиза: **`D:\TTRPG-Release\prepare-release.cmd`** (версия, git, сборка Win/Linux, копирование в папку).
- Публикация на VPS: **`D:\TTRPG-Release\publish.cmd`** (проверка + `scp`). Копия в репо: `scripts/ttrpg-release/`
- **Имена файлов без версии** — версия только в `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-…`.