Use absolute paths for Divine package build
All checks were successful
Build Mod Package / build (push) Successful in 6s

This commit is contained in:
2026-04-07 23:44:10 +03:00
parent 8df14bc369
commit d29022f8bf

View File

@@ -68,6 +68,9 @@ jobs:
- name: Build .pak - name: Build .pak
run: | run: |
$ErrorActionPreference = "Stop" $ErrorActionPreference = "Stop"
$workspace = "${{ gitea.workspace }}"
$modsPath = [System.IO.Path]::GetFullPath((Join-Path $workspace "Mods"))
$packagePath = [System.IO.Path]::GetFullPath((Join-Path $workspace "build/DnD55eRussian.pak"))
$divine = Get-ChildItem -Path ".tools/lslib" -Recurse -File | $divine = Get-ChildItem -Path ".tools/lslib" -Recurse -File |
Where-Object { $_.Name -ieq "Divine.exe" } | Where-Object { $_.Name -ieq "Divine.exe" } |
Select-Object -First 1 Select-Object -First 1
@@ -76,7 +79,7 @@ jobs:
throw "Divine.exe was not found in the downloaded LSLib release." throw "Divine.exe was not found in the downloaded LSLib release."
} }
& $divine.FullName -a create-package -g bg3 -s Mods -d build/DnD55eRussian.pak & $divine.FullName -a create-package -g bg3 -s $modsPath -d $packagePath
if (-not (Test-Path -LiteralPath "build/DnD55eRussian.pak")) { if (-not (Test-Path -LiteralPath "build/DnD55eRussian.pak")) {
throw "Package was not created." throw "Package was not created."