From f81528b5b8754aae3928ffedb46a2defabb3dc75 Mon Sep 17 00:00:00 2001 From: "Mr.k" Date: Mon, 24 Jun 2024 01:10:00 +0300 Subject: [PATCH] Remove The Entire 'Adding: Config *.cfg' Compilation Process --- Compile.ps1 | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Compile.ps1 b/Compile.ps1 index 8568e1af..cef517c0 100644 --- a/Compile.ps1 +++ b/Compile.ps1 @@ -63,13 +63,6 @@ Get-ChildItem .\config | Where-Object {$psitem.extension -eq ".json"} | ForEach- $sync.configs.$($psitem.BaseName) = $json | convertfrom-json $script_content.Add($(Write-output "`$sync.configs.$($psitem.BaseName) = '$json' `| convertfrom-json" )) } -Write-Progress -Activity "Compiling" -Status "Adding: Config *.cfg" -PercentComplete 45 -Get-ChildItem .\config | Where-Object {$PSItem.Extension -eq ".cfg"} | ForEach-Object { - $script_content.Add($(Write-output "`$sync.configs.$($psitem.BaseName) = '$(Get-Content $PSItem.FullName)'")) -} -Get-ChildItem .\config | Where-Object {$PSItem.Extension -eq ".cfg"} | ForEach-Object { - $script_content.Add($(Write-output "`$sync.configs.$($psitem.BaseName) = '$(Get-Content $PSItem.FullName)'")) -} $xaml = (Get-Content .\xaml\inputXML.xaml).replace("'","''") @@ -106,4 +99,4 @@ else { } Set-Content -Path $scriptname -Value ($script_content -join "`r`n") -Encoding ascii -Write-Progress -Activity "Compiling" -Completed \ No newline at end of file +Write-Progress -Activity "Compiling" -Completed