Skip to content

Commit 86ce3b1

Browse files
authored
fix: Ensure UTF-8 encoding for finch.yaml on windows (runfinch#1388)
Signed-off-by: Henry Wang <[email protected]>
1 parent c26969e commit 86ce3b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msi-builder/postinstall.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ SET InstallDir=%~1
33
SET FilePath=%InstallDir%\os\finch.yaml
44

55
if exist "%FilePath%" (
6-
powershell -Command "$installPath = '%InstallDir%'.Replace('\', '/'); (Get-Content '%FilePath%') -replace '__INSTALLFOLDER__', $installPath | Set-Content '%FilePath%'"
6+
powershell -Command "$installPath = '%InstallDir%'.Replace('\', '/'); (Get-Content '%FilePath%') -replace '__INSTALLFOLDER__', $installPath | Set-Content -Encoding UTF8 '%FilePath%'"
77
)
88

99
icacls "%InstallDir%\lima\data" /grant Users:(OI)(CI)M

0 commit comments

Comments
 (0)