Собирать релизный архив и брать профиль из пакета

package-release.ps1 кладёт в zip то, что нужно другу: install/uninstall/
start-launcher, dist с артефактами, profiles, README. Сборка запускается
внутри, чтобы архив всегда соответствовал исходникам.

Установщик теперь сначала смотрит профиль в profiles\latest.rsxp пакета, и
только потом в старый путь с моей машины - раньше друг получил бы
"профиля нет".
This commit is contained in:
SashegDev committed 2026-10-17 01:49:47 +03:00
1 parent 9f43d35f44
commit 2eaab88809
2 files changed
+89 -4

No files matched your search

+9 -4
View File
@@ -141,14 +141,19 @@ Copy-Item (Join-Path $Dist 'rsx-bridge.jar') (Join-Path $ModHome 'bridge') -Forc
Say 'скопирован rsx-bridge.jar'
$existingProfile = Join-Path $ModHome 'bridge\profiles\latest.rsxp'
$repoProfile = Join-Path $Repo 'profiles\latest.rsxp'
$oldProfile = 'G:\rsx-mod\bridge\profiles\latest.rsxp'
if (-not (Test-Path $existingProfile) -and (Test-Path $oldProfile)) {
if (Test-Path $existingProfile) {
Say 'профиль уже на месте, оставляю как есть'
} elseif (Test-Path $repoProfile) {
# the profile that ships with this package: the mapping for the vendor build
Copy-Item $repoProfile (Split-Path $existingProfile) -Force
Say 'установлен профиль сборки игры из пакета (latest.rsxp)'
} elseif (Test-Path $oldProfile) {
Copy-Item $oldProfile (Split-Path $existingProfile) -Force
Say 'перенесён профиль сборки игры (latest.rsxp)'
} elseif (Test-Path $existingProfile) {
Say 'профиль уже на месте, оставляю как есть'
} else {
Say 'профиля нет - запусти prepare-build.cmd после первой установки', Yellow
Say 'профиля нет - моды грузиться не будут, нужен latest.rspx для этой сборки', Yellow
}
# --------------------------------------------------------------- patch the launcher