修复发布路径检查的空环境变量参数错误

This commit is contained in:
xuans committed 2026-09-20 20:54:07 +08:00
1 parent 1fbd26e031
commit e25e840930
2 files changed
+4 -1

No files matched your search

@@ -143,6 +143,8 @@ func TestReleaseScriptUsesPathChecksAndIncludesLinuxHelper(t *testing.T) {
}
for _, required := range []string{
"go build -trimpath", "wails build -trimpath", "Test-ReleasePaths -Source $targetDirectory",
`$checkedPaths = @($forbiddenPaths | Where-Object { -not [string]::IsNullOrWhiteSpace($_) } | Select-Object -Unique)`,
`-ForbiddenPaths $checkedPaths`,
`-Package "./cmd/scert-nginx"`, `$binaries += "scert-nginx"`,
`-Executable (@("install-linux.sh") + $binaries)`,
`trimpath = $true`, `local_path_check = "passed"`,