From d663e16e189502315cbba1ac9a451df59f5cb84d Mon Sep 17 00:00:00 2001 From: DSR! Date: Mon, 18 Mar 2024 16:14:53 -0300 Subject: [PATCH] Update builder.yml --- .github/workflows/builder.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/builder.yml b/.github/workflows/builder.yml index 3cc3bd0..634c81e 100644 --- a/.github/workflows/builder.yml +++ b/.github/workflows/builder.yml @@ -19,9 +19,11 @@ jobs: working-directory: ./src/bin/installer/full shell: pwsh run: | + $srcDirReplacement = '#define MySrcDir "' + "${{ github.workspace }}/src".Replace('\', '\\') + '"' + $outDirReplacement = '#define MyOutputDir "' + "${{ github.workspace }}".Replace('\', '\\') + '"' $content = Get-Content -Path setup.iss -Raw - $content = $content -replace '#define MySrcDir "C:\\\\code\\\\toolkit"', '#define MySrcDir "' + "${{ github.workspace }}/src" + '"' - $content = $content -replace '#define MyOutputDir "C:\\\\code"', '#define MyOutputDir "' + "${{ github.workspace }}" + '"' + $content = $content -replace '#define MySrcDir "C:\\\\code\\\\toolkit"', $srcDirReplacement + $content = $content -replace '#define MyOutputDir "C:\\\\code"', $outDirReplacement Set-Content -Path setup.iss -Value $content - name: Prepare directory