chore: migrate production URLs to ttrpgplayer.ru (v1.0.24)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Ivan Fontosh
2026-07-01 15:59:37 +08:00
parent 374e041321
commit 60ef837e1c
11 changed files with 108 additions and 63 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ const isProd = resolveIsProduction();
const obfuscateMain = resolveObfuscateMain();
/** База для `GET …/v1/status` (отзыв). Прод: по умолчанию публичный сервер; переопределение: `DND_LICENSE_STATUS_URL=… npm run build`. */
const DEFAULT_LICENSE_STATUS_BASE = 'https://license.mailib.ru/';
const DEFAULT_LICENSE_STATUS_BASE = 'https://license.ttrpgplayer.ru/';
/** Старые .map от dev-сборок не должны попадать в pack. */
function removeStaleNodeBundleMaps() {
+2 -2
View File
@@ -77,7 +77,7 @@ def build_document() -> Document:
srv.rows[0].cells[0].text = "Параметр"
srv.rows[0].cells[1].text = "Значение"
server_rows = [
("Домен", "https://license.mailib.ru/"),
("Домен", "https://license.ttrpgplayer.ru/"),
("VPS", "185.173.94.234"),
("Папка проекта", "/var/www/license_mailib_ru"),
("Файл ключей", "/var/www/license_mailib_ru/data.json"),
@@ -229,7 +229,7 @@ console.log('maxDevices:', maxDevices);
add_code(doc, "sudo -u dndlicense pm2 restart dnd-license")
doc.add_heading("Проверка", level=1)
add_bullet(doc, "Сервер жив: curl https://license.mailib.ru/health → {\"ok\":true}")
add_bullet(doc, "Сервер жив: curl https://license.ttrpgplayer.ru/health → {\"ok\":true}")
add_bullet(
doc,
"В приложении TTRPG Player: «Указать ключ» → вставить продуктовый ключ → активация.",
+4 -4
View File
@@ -38,7 +38,7 @@ def build_document() -> Document:
doc.add_paragraph(
"Одна версия на все платформы. Сначала вручную поднимается версия и собирается macOS; "
"затем на Windows скрипт собирает Win/Linux без повторного bump и выкладывает на "
"https://updates.mailib.ru/"
"https://updates.ttrpgplayer.ru/"
)
doc.add_heading("Рекомендуемый порядок", level=1)
@@ -136,9 +136,9 @@ def build_document() -> Document:
doc.add_heading("Проверка после выкладки", level=1)
for url in [
"https://updates.mailib.ru/latest.yml",
"https://updates.mailib.ru/latest-linux.yml",
"https://updates.mailib.ru/latest-mac.yml",
"https://updates.ttrpgplayer.ru/latest.yml",
"https://updates.ttrpgplayer.ru/latest-linux.yml",
"https://updates.ttrpgplayer.ru/latest-mac.yml",
]:
add_bullet(doc, url)
+90 -45
View File
@@ -1,45 +1,90 @@
TTRPG Release folder
====================
RECOMMENDED WORKFLOW (same version on all platforms)
----------------------------------------------------
1) bump-version.cmd
OR in project: npm version patch --no-git-tag-version
2) On Mac: npm ci && npm run build && npm run pack:mac
Copy to D:\TTRPG-Release:
latest-mac.yml, TTRPGPlayer-x64.zip, TTRPGPlayer-arm64.zip (+ dmg optional)
3) release-all.cmd
- does NOT bump version (default -AfterMac)
- checks Mac files match package.json version
- builds Windows + Linux, copies artifacts, publishes to updates.mailib.ru
LEGACY (Win/Linux ahead of Mac)
-------------------------------
release-all-bump.cmd - bumps patch in script, build Win/Linux, publish with -SkipMac or add Mac later
SCRIPTS
TTRPG Release folder
====================
RECOMMENDED WORKFLOW (same version on all platforms)
----------------------------------------------------
1) bump-version.cmd
OR in project: npm version patch --no-git-tag-version
2) On Mac: npm ci && npm run build && npm run pack:mac
Copy to D:\TTRPG-Release:
latest-mac.yml, TTRPGPlayer-x64.zip, TTRPGPlayer-arm64.zip (+ dmg optional)
3) release-all.cmd
- does NOT bump version (default -AfterMac)
- checks Mac files match package.json version
- builds Windows + Linux, copies artifacts, publishes to updates.ttrpgplayer.ru
LEGACY (Win/Linux ahead of Mac)
-------------------------------
release-all-bump.cmd - bumps patch in script, build Win/Linux, publish with -SkipMac or add Mac later
SCRIPTS
-------
release-all.cmd prepare + publish (-AfterMac by default)
prepare-release.cmd build Win/Linux only
publish.cmd upload only (-SkipMac if no Mac)
bump-version.cmd patch version in package.json only
prepare-release flags:
-AfterMac no bump, require Mac files in this folder (default via release-all)
-Bump bump patch then build
-SkipGit -SkipLinux -NoBump -Version X.Y.Z -Minor
publish flags:
-SkipMac -CheckOnly
CONFIG
------
release-config.json - project path, release path, git, WSL
publish-config.json - SSH upload settings
Requires: Node.js 20+, git, OpenSSH, WSL+nvm for Linux.
Doc: TTRPG-Release-Instructions.docx
+1 -1
View File
@@ -2,5 +2,5 @@
"sshKey": "%USERPROFILE%\\.ssh\\ttrpg_updates_root",
"sshTarget": "root@185.173.94.234",
"remoteDir": "/var/www/updates_mailib_ru",
"feedUrl": "https://updates.mailib.ru/"
"feedUrl": "https://updates.ttrpgplayer.ru/"
}