From a14f8cd92470fd1a9a3aae59ce230aea458ae38f Mon Sep 17 00:00:00 2001 From: "(Jip) Willem Wijnia" Date: Tue, 30 Apr 2024 17:08:25 +0200 Subject: [PATCH] Use a different method to write out the file --- tools/index.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/index.ps1 b/tools/index.ps1 index 57994f3..cd607e6 100644 --- a/tools/index.ps1 +++ b/tools/index.ps1 @@ -54,7 +54,8 @@ Function Run { Write-Progress -Activity "Creating unit index" $json = Create-UnitIndex "$inputUnits" "$inputLua/version.lua" $Utf8NoBomEncoding = New-Object System.Text.UTF8Encoding($False) - [System.IO.File]::WriteAllLines("$target\data\index.json" , $json, $Utf8NoBomEncoding) + # [System.IO.File]::WriteAllLines("$target\data\index.json" , $json, $Utf8NoBomEncoding) + Set-Content -Path "$target\data\index.json" -Value $json Write-Progress -Activity "Cleaning" python cleaner.py $target