Skip to content

Commit

Permalink
Update script, UTF-8 with **no** BOM
Browse files Browse the repository at this point in the history
  • Loading branch information
otomad committed Mar 29, 2023
1 parent 25a8673 commit eb7134d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion otomad_helper/Otomad Helper.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* 音 MAD 助手 Vegas,旨在使 Vegas 接受 MIDI 序列文件作为输入,自动生成音 MAD / YTPMV 的轨道。
* 音 MAD 助手,旨在使 Vegas 接受 MIDI 序列文件作为输入,自动生成音 MAD / YTPMV 的轨道。
* Vegas 16 及以上的版本支持所有功能,Vegas 13 及以上的版本可以兼容运行。
* 将本脚本及其它所有附属文件放置在您 Vegas 安装目录下的 Script Menu 文件夹中。
* 具体说明请参见下方的说明文档链接。
Expand Down
5 changes: 4 additions & 1 deletion pack.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ function Update-ToReplaceTextFileOnce {
$content = [Regex]::New($sourceTexts[$i]).Replace($content, $targetTexts[$i], 1)
}

Set-Content -Path $file -Value $content -Encoding UTF8
# Set-Content -Path $file -Value $content -Encoding UTF8
$utf8NoBomEncoding = New-Object Text.UTF8Encoding $False
[IO.File]::WriteAllLines($file, $content, $utf8NoBomEncoding)
}

function Update-UndefinedSymbols {
Expand Down Expand Up @@ -74,3 +76,4 @@ for ($i = 0; $i -lt $infos.Count; $i++) {
Rename-Item -Path "release_package_template.zip" -NewName ([String]$i + "_otomad_helper_v" + $version + "_vegas" + [string]$info.VegasVersions + ".zip")
Remove-Item "Otomad Helper.cs"
}
Remove-Item "..\Otomad Helper.cs"

0 comments on commit eb7134d

Please sign in to comment.