Explorar o código

Prevent extra newlines in CMakeLists.txt after building

PowerShell's Out-File cmdlet by default writes a newline at the end of
the file. We can prevent this either by manually trimming the whitespace
before sending the output to Out-File, or simply using the -NoNewline
parameter for Out-File.

Fixes obsproject/obs-plugintemplate#49.
Ryan Foster %!s(int64=2) %!d(string=hai) anos
pai
achega
6bf2a158be
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      .github/scripts/Build-Windows.ps1

+ 1 - 1
.github/scripts/Build-Windows.ps1

@@ -59,7 +59,7 @@ function Build {
 
     (Get-Content -Path ${ProjectRoot}/CMakeLists.txt -Raw) `
         -replace "project\((.*) VERSION (.*)\)", "project(${ProductName} VERSION ${ProductVersion})" `
-        | Out-File -Path ${ProjectRoot}/CMakeLists.txt
+        | Out-File -Path ${ProjectRoot}/CMakeLists.txt -NoNewline
 
     Setup-Obs