Skip to content

Commit 9b83d9a

Browse files
committed
pacman: write smoke metadata with Unix newlines
1 parent 95005b9 commit 9b83d9a

1 file changed

Lines changed: 19 additions & 18 deletions

File tree

tests/pacman/msys-runtime-smoke.ps1

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -75,24 +75,25 @@ if ($runtimeFiles.Count -ne 2) {
7575
throw "minimal runtime contains unexpected files"
7676
}
7777

78-
[IO.File]::WriteAllText($configPath, @"
79-
[options]
80-
Architecture = x86_64
81-
SigLevel = Never
82-
CheckSpace
83-
"@)
84-
85-
[IO.File]::WriteAllText((Join-Path $packageRoot ".PKGINFO"), @"
86-
pkgname = vitasdk-msys-probe
87-
pkgbase = vitasdk-msys-probe
88-
pkgver = 1.0-1
89-
pkgdesc = VitaSDK MSYS runtime smoke package
90-
builddate = 0
91-
packager = VitaSDK CI
92-
size = 6
93-
arch = x86_64
94-
license = MIT
95-
"@)
78+
[IO.File]::WriteAllText($configPath, (@(
79+
"[options]",
80+
"Architecture = x86_64",
81+
"SigLevel = Never",
82+
"CheckSpace"
83+
) -join "`n") + "`n")
84+
85+
# Pacman package metadata is a Unix text format. Force LF even on Windows.
86+
[IO.File]::WriteAllText((Join-Path $packageRoot ".PKGINFO"), (@(
87+
"pkgname = vitasdk-msys-probe",
88+
"pkgbase = vitasdk-msys-probe",
89+
"pkgver = 1.0-1",
90+
"pkgdesc = VitaSDK MSYS runtime smoke package",
91+
"builddate = 0",
92+
"packager = VitaSDK CI",
93+
"size = 6",
94+
"arch = x86_64",
95+
"license = MIT"
96+
) -join "`n") + "`n")
9697
[IO.File]::WriteAllText(
9798
(Join-Path $packageRoot "arm-vita-eabi/include/msys-probe.h"),
9899
"probe`n"

0 commit comments

Comments
 (0)