diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-12-05 18:55:10 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-12-05 18:55:10 -0500 |
commit | f4ca7dd228390f030735195357e81e5170bcd474 (patch) | |
tree | 417cb3971dd08fac5cbf23518406d7658dbb7ed3 /build/windows/lib | |
parent | c05fdf65cfc8864d5f436e3a42e6e2df144c1db8 (diff) | |
download | SMAPI-f4ca7dd228390f030735195357e81e5170bcd474.tar.gz SMAPI-f4ca7dd228390f030735195357e81e5170bcd474.tar.bz2 SMAPI-f4ca7dd228390f030735195357e81e5170bcd474.zip |
add Windows build process to fix application icon until .NET bug is fixed
Diffstat (limited to 'build/windows/lib')
-rw-r--r-- | build/windows/lib/in-place-regex.ps1 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/build/windows/lib/in-place-regex.ps1 b/build/windows/lib/in-place-regex.ps1 new file mode 100644 index 00000000..7b309342 --- /dev/null +++ b/build/windows/lib/in-place-regex.ps1 @@ -0,0 +1,11 @@ +function In-Place-Regex { + param ( + [Parameter(Mandatory)][string]$Path, + [Parameter(Mandatory)][string]$Search, + [Parameter(Mandatory)][string]$Replace + ) + + $content = (Get-Content "$Path" -Encoding UTF8) + $content = ($content -replace "$Search", "$Replace") + [System.IO.File]::WriteAllLines((Get-Item "$Path").FullName, $content) +} |