From 5645c8d258120dea31e0ccae2bef062e0b1ff054 Mon Sep 17 00:00:00 2001 From: psyirius Date: Wed, 7 Aug 2024 08:30:36 -0700 Subject: [PATCH] compress the embedded config json --- Compile.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Compile.ps1 b/Compile.ps1 index 22ce7d5b..4cc2d125 100644 --- a/Compile.ps1 +++ b/Compile.ps1 @@ -102,7 +102,7 @@ Get-ChildItem "$workingdir\config" | Where-Object {$psitem.extension -eq ".json" # The replace at the end is required, as without it the output of 'converto-json' will be somewhat weird for Multiline Strings # Most Notably is the scripts in some json files, making it harder for users who want to review these scripts, which're found in the compiled script - $json = ($jsonAsObject | convertto-json -Depth 3).replace('\r\n',"`r`n") + $json = ($jsonAsObject | convertto-json -Depth 3 -Compress).replace('\r\n',"`r`n") $sync.configs.$($psitem.BaseName) = $json | convertfrom-json $script_content.Add($(Write-output "`$sync.configs.$($psitem.BaseName) = '$json' `| convertfrom-json" ))