Skip to content

Commit

Permalink
Use a different method to write out the file
Browse files Browse the repository at this point in the history
  • Loading branch information
Garanas committed Apr 30, 2024
1 parent 93afb09 commit a14f8cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/index.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a14f8cd

Please sign in to comment.