2 Commits

Author SHA1 Message Date
3476112815 Pack workspace root for BG3 package build
Some checks failed
Build Mod Package / build (push) Failing after 5s
2026-04-08 00:26:40 +03:00
ca2b0ec3a1 Fix Divine pack command and validate package output
Some checks failed
Build Mod Package / build (push) Failing after 5s
2026-04-08 00:24:51 +03:00

View File

@@ -74,14 +74,14 @@ jobs:
$modName = "DnD 5.5e All-in-One BEYOND Russian Localization"
$modFolder = "DnD 5.5e AIO Russian"
$modUuid = "6401e84d-daf2-416d-adeb-99c03a2487a6"
$modDescription = "Русская локализация мода DnD 5.5e All-in-One BEYOND."
$modDescription = "Russian Localization"
$modAuthor = "MikhailRaw"
$modVersion64 = "36028797018963968"
$modGroup = "6401e84d-daf2-416d-adeb-99c03a2487a6"
if ($refName -and $refName -like "v*") {
$archiveBaseName = "DnD 5.5e AIO Russian $refName"
}
$modsPath = [System.IO.Path]::GetFullPath((Join-Path $workspace "Mods"))
$sourcePath = [System.IO.Path]::GetFullPath($workspace)
$packagePath = [System.IO.Path]::GetFullPath((Join-Path $workspace "build/DnD 5.5e AIO Russian.pak"))
$zipPath = [System.IO.Path]::GetFullPath((Join-Path $workspace "build/$archiveBaseName.zip"))
$infoJsonPath = [System.IO.Path]::GetFullPath((Join-Path $workspace "build/info.json"))
@@ -93,12 +93,17 @@ jobs:
throw "Divine.exe was not found in the downloaded LSLib release."
}
& $divine.FullName -a create-package -g bg3 -s $modsPath -d $packagePath
& $divine.FullName -a create-package -g bg3 -s $sourcePath -d $packagePath
if (-not (Test-Path -LiteralPath "build/DnD 5.5e AIO Russian.pak")) {
throw "Package was not created."
}
$packageFile = Get-Item -LiteralPath $packagePath
if ($packageFile.Length -lt 1024) {
throw "Package looks invalid: '$packagePath' is only $($packageFile.Length) bytes."
}
if (Test-Path -LiteralPath $zipPath) {
Remove-Item -LiteralPath $zipPath -Force
}
@@ -121,7 +126,7 @@ jobs:
}
)
MD5 = $packageMd5
} | ConvertTo-Json
} | ConvertTo-Json -Depth 4
Set-Content -LiteralPath $infoJsonPath -Value $infoJson -Encoding utf8