From d59d6459aa2c0fe7c928891f344694303b1cbf71 Mon Sep 17 00:00:00 2001 From: Marlon Richert Date: Sat, 11 Jul 2026 20:34:47 +0300 Subject: [PATCH] Fix modScriptPackages holding full paths instead of package names $this.modScriptPackages is typed [string[]], but was assigned the raw Get-ChildItem -Directory results (DirectoryInfo objects). PowerShell coerces each to its full path via ToString(), not just the folder name, so every later "$name.u" package-copy step built a garbage path. Platform-independent bug, not Linux-specific. --- build_common.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_common.ps1 b/build_common.ps1 index 0486b01..48ec896 100644 --- a/build_common.ps1 +++ b/build_common.ps1 @@ -240,7 +240,7 @@ class BuildProject { # the mod's packages $modSrcPath = "$($this.modSrcRoot)/Src" if (Test-Path $modSrcPath) { - $this.modScriptPackages = @(Get-ChildItem "$($this.modSrcRoot)/Src" -Directory) + $this.modScriptPackages = @((Get-ChildItem "$($this.modSrcRoot)/Src" -Directory).Name) } else { # No scripts to compile $this.modScriptPackages = @()