コミットを比較
| 作成者 | SHA1 | 日付 | |
|---|---|---|---|
|
|
8f18cce506
|
||
|
|
7e356579c3
|
||
|
|
7670dbbae2
|
||
|
|
d06490303b
|
||
|
|
c07c17d027
|
||
|
|
0d4d110e87
|
||
|
|
41612b118a
|
||
|
|
6bb3b139f4
|
||
|
|
fb9e1d80c8
|
||
|
|
cd8d030173
|
||
|
|
e0577ff7ea
|
||
|
|
0dc17d4e6c
|
||
|
|
157fea2578
|
||
|
|
fd2769fba5
|
||
|
|
2fdb096629
|
||
|
|
2177b5cb38
|
||
|
|
11f87a31f7
|
||
|
|
b52a7f1571
|
||
|
|
beaf39f6bc
|
||
|
|
c101cc83a7
|
||
|
|
894214cd04
|
||
|
|
90d3883dab
|
||
|
|
f398f0161f
|
||
|
|
446f47d1ed
|
||
|
|
6e6a8558f0
|
||
|
|
e1c114d54b
|
||
|
|
82aba9781c
|
||
|
|
114bd6e6ee
|
||
|
|
bdb843f2df
|
||
|
|
1941a9c168
|
||
|
|
a55a3849f9
|
||
|
|
3ae158b1a4
|
||
|
|
50e36725a9
|
||
|
|
e6064d3d37
|
||
|
|
8078ca06b1
|
検索条件に一致するファイルはありません
+77
@@ -0,0 +1,77 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
tab_width = 4
|
||||
end_of_line = crlf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
[*.{json,yml,yaml}]
|
||||
indent_size = 2
|
||||
|
||||
[*.{csproj,props,targets,vcxproj,filters,slnx,resx,xml}]
|
||||
charset = unset
|
||||
indent_style = unset
|
||||
indent_size = unset
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
|
||||
[*.cs]
|
||||
dotnet_separate_import_directive_groups = false
|
||||
dotnet_sort_system_directives_first = true
|
||||
|
||||
dotnet_style_qualification_for_field = false:error
|
||||
dotnet_style_qualification_for_property = false:error
|
||||
dotnet_style_qualification_for_method = false:error
|
||||
dotnet_style_qualification_for_event = false:error
|
||||
dotnet_style_predefined_type_for_locals_parameters_members = true:error
|
||||
dotnet_style_predefined_type_for_member_access = true:error
|
||||
dotnet_style_readonly_field = true:warning
|
||||
dotnet_style_coalesce_expression = true:suggestion
|
||||
dotnet_style_null_propagation = true:suggestion
|
||||
dotnet_style_object_initializer = true:suggestion
|
||||
dotnet_style_collection_initializer = true:suggestion
|
||||
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:warning
|
||||
dotnet_style_operator_placement_when_wrapping = beginning_of_line
|
||||
dotnet_code_quality_unused_parameters = all:warning
|
||||
|
||||
csharp_style_namespace_declarations = file_scoped:error
|
||||
csharp_using_directive_placement = outside_namespace:error
|
||||
csharp_prefer_braces = when_multiline:silent
|
||||
csharp_style_var_for_built_in_types = true:silent
|
||||
csharp_style_var_when_type_is_apparent = true:silent
|
||||
csharp_style_var_elsewhere = true:silent
|
||||
csharp_style_expression_bodied_methods = when_on_single_line:silent
|
||||
csharp_style_expression_bodied_properties = true:silent
|
||||
csharp_style_expression_bodied_accessors = true:silent
|
||||
csharp_style_prefer_pattern_matching = true:suggestion
|
||||
csharp_style_prefer_not_pattern = true:suggestion
|
||||
csharp_style_prefer_switch_expression = true:suggestion
|
||||
csharp_style_prefer_readonly_struct = true:warning
|
||||
csharp_style_prefer_readonly_struct_member = true:warning
|
||||
csharp_prefer_static_local_function = true:warning
|
||||
csharp_style_prefer_primary_constructors = true:silent
|
||||
|
||||
csharp_new_line_before_open_brace = all
|
||||
csharp_new_line_before_else = true
|
||||
csharp_new_line_before_catch = true
|
||||
csharp_new_line_before_finally = true
|
||||
|
||||
dotnet_diagnostic.IDE0005.severity = warning
|
||||
dotnet_diagnostic.IDE0055.severity = warning
|
||||
dotnet_diagnostic.IDE0161.severity = error
|
||||
|
||||
[{YMM4-GitHubUpdateNotifier,YMM4-Telemetry,YukkuriMovieMaker.Generator}/**]
|
||||
dotnet_diagnostic.IDE0005.severity = none
|
||||
dotnet_diagnostic.IDE0055.severity = none
|
||||
dotnet_diagnostic.IDE0161.severity = none
|
||||
|
||||
[*.{g.cs,designer.cs}]
|
||||
generated_code = true
|
||||
dotnet_diagnostic.IDE0005.severity = none
|
||||
dotnet_diagnostic.IDE0055.severity = none
|
||||
dotnet_diagnostic.IDE0161.severity = none
|
||||
@@ -0,0 +1,483 @@
|
||||
name: リリース
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag:
|
||||
description: リリースするタグ
|
||||
required: true
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
build-and-release:
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- name: ソースコードのチェックアウト
|
||||
uses: actions/checkout@v4
|
||||
env:
|
||||
GIT_CONFIG_COUNT: "2"
|
||||
GIT_CONFIG_KEY_0: url.https://git.routersys.com/routersys/.insteadOf
|
||||
GIT_CONFIG_VALUE_0: https://github.com/routersys/
|
||||
GIT_CONFIG_KEY_1: url.https://git.routersys.com/manju-summoner/YukkuriMovieMaker.Generator.insteadOf
|
||||
GIT_CONFIG_VALUE_1: https://github.com/manju-summoner/YukkuriMovieMaker.Generator
|
||||
with:
|
||||
ref: ${{ inputs.tag || github.ref_name }}
|
||||
submodules: recursive
|
||||
fetch-depth: 0
|
||||
|
||||
- name: YMM4 最新リリースの取得と解凍
|
||||
id: ymm4
|
||||
shell: pwsh
|
||||
run: |
|
||||
$list = 'C:\runner\cache\ymm4\releases.json'
|
||||
New-Item -ItemType Directory -Force -Path (Split-Path $list) | Out-Null
|
||||
if (-not (Test-Path $list) -or (Get-Item $list).Length -lt 1000 -or ((Get-Date) - (Get-Item $list).LastWriteTime).TotalHours -gt 6) {
|
||||
$fetched = $null
|
||||
for ($attempt = 1; $attempt -le 6 -and -not $fetched; $attempt++) {
|
||||
try {
|
||||
$fetched = Invoke-RestMethod -Uri "https://api.github.com/repos/manju-summoner/YukkuriMovieMaker4/releases?per_page=100" `
|
||||
-Headers @{ "User-Agent" = "UTAU-CI" } -ErrorAction Stop
|
||||
}
|
||||
catch {
|
||||
$message = $_.Exception.Message
|
||||
Write-Host "リリース一覧の取得に失敗しました($attempt 回目): $($message.Substring(0, [Math]::Min(80, $message.Length)))"
|
||||
Start-Sleep -Seconds (5 * $attempt)
|
||||
}
|
||||
}
|
||||
if (@($fetched).Count -gt 0) {
|
||||
$fetched | Select-Object tag_name, published_at, prerelease, draft, assets |
|
||||
ConvertTo-Json -Depth 6 | Set-Content -Path $list -Encoding UTF8
|
||||
}
|
||||
elseif (-not (Test-Path $list)) { throw 'the list of releases could not be fetched' }
|
||||
else { Write-Host '保存済みのリリース一覧を使います' }
|
||||
}
|
||||
$when = [DateTimeOffset](git log -1 --format=%cI)
|
||||
$releases = @(Get-Content -Raw -Path $list | ConvertFrom-Json | Where-Object { -not $_.draft -and -not $_.prerelease })
|
||||
$release = $releases | Where-Object { [DateTimeOffset]$_.published_at -le $when } | Select-Object -First 1
|
||||
if (-not $release) { $release = $releases | Select-Object -Last 1 }
|
||||
Write-Host "最後のコミット $when に合わせた YMM4: $($release.tag_name)"
|
||||
$asset = $release.assets | Where-Object { $_.name -like "*_Lite.zip" } | Select-Object -First 1
|
||||
if (-not $asset) {
|
||||
$asset = $release.assets | Where-Object { $_.name -like "*.zip" } | Select-Object -First 1
|
||||
}
|
||||
Write-Host "ダウンロード対象: $($asset.name)"
|
||||
$cache = Join-Path 'C:\runner\cache\ymm4' $asset.name
|
||||
$extracted = "$cache.extracted"
|
||||
$lock = New-Object System.Threading.Mutex($false, 'Global\ci-ymm4-cache')
|
||||
[void]$lock.WaitOne()
|
||||
try {
|
||||
if (-not (Test-Path "$extracted\.complete")) {
|
||||
New-Item -ItemType Directory -Force -Path (Split-Path $cache) | Out-Null
|
||||
Invoke-WebRequest -Uri $asset.browser_download_url -OutFile $cache
|
||||
Remove-Item -Recurse -Force $extracted -ErrorAction SilentlyContinue
|
||||
Expand-Archive -Path $cache -DestinationPath $extracted -Force
|
||||
New-Item -ItemType File -Path "$extracted\.complete" | Out-Null
|
||||
}
|
||||
else {
|
||||
Write-Host "保存済みの YMM4 を使います: $extracted"
|
||||
}
|
||||
}
|
||||
finally {
|
||||
$lock.ReleaseMutex()
|
||||
}
|
||||
$ymm4Dir = (Get-ChildItem -Path $extracted -Recurse -Filter "YukkuriMovieMaker.dll" |
|
||||
Select-Object -First 1).DirectoryName
|
||||
Write-Host "YMM4 DLL ディレクトリ: $ymm4Dir"
|
||||
echo "YMM4_DIR=$ymm4Dir\" >> $env:GITHUB_OUTPUT
|
||||
|
||||
- name: タグ名からバージョンを取得
|
||||
id: version
|
||||
shell: pwsh
|
||||
run: |
|
||||
$tag = "${{ inputs.tag || github.ref_name }}"
|
||||
echo "TAG=$tag" >> $env:GITHUB_OUTPUT
|
||||
echo "VERSION=$($tag.TrimStart('v'))" >> $env:GITHUB_OUTPUT
|
||||
|
||||
- name: バージョン記載の照合
|
||||
shell: pwsh
|
||||
run: |
|
||||
$tag = "${{ steps.version.outputs.TAG }}"
|
||||
$version = "${{ steps.version.outputs.VERSION }}"
|
||||
$problems = @()
|
||||
|
||||
$csprojPath = "UTAU/UTAU.csproj"
|
||||
$csproj = Get-Content $csprojPath -Raw
|
||||
if (-not $csproj.Contains("<Version>$version</Version>")) {
|
||||
$current = if ($csproj -match '<Version>([^<]*)</Version>') { $Matches[1] } else { "記載なし" }
|
||||
$problems += "$csprojPath の <Version> が $current です。$version にしてください。"
|
||||
}
|
||||
|
||||
$readmePath = ".github/Plugin_Readme.txt"
|
||||
$readme = Get-Content $readmePath -Raw
|
||||
if (-not $readme.Contains(" UTAU for YMM4 $tag")) {
|
||||
$current = if ($readme -match '(?m)^ UTAU for YMM4 (\S+)') { $Matches[1] } else { "記載なし" }
|
||||
$problems += "$readmePath の見出しが $current です。$tag にしてください。"
|
||||
}
|
||||
|
||||
if ($problems.Count -eq 0) {
|
||||
Write-Host "バージョン記載は $tag と一致しています"
|
||||
exit 0
|
||||
}
|
||||
|
||||
foreach ($problem in $problems) {
|
||||
Write-Host "::error::$problem"
|
||||
}
|
||||
Write-Host "::error::リリースの対象は $tag が指すコミットです。タグを付けた後で main へ訂正を積んでも、その訂正はリリースに入りません。タグを削除し、記載を直したコミットを積んでから付け直してください。"
|
||||
exit 1
|
||||
|
||||
- name: resx ファイルの生成(初回ビルド)
|
||||
shell: pwsh
|
||||
run: |
|
||||
$proj = "UTAU/UTAU.csproj"
|
||||
dotnet build "$proj" `
|
||||
-c Release `
|
||||
-p:YMM4DirPath="${{ steps.ymm4.outputs.YMM4_DIR }}" `
|
||||
-p:SkipPluginDeploy=true
|
||||
|
||||
- name: プロジェクトのビルド
|
||||
shell: pwsh
|
||||
run: |
|
||||
$proj = "UTAU/UTAU.csproj"
|
||||
dotnet build "$proj" `
|
||||
-c Release `
|
||||
-p:YMM4DirPath="${{ steps.ymm4.outputs.YMM4_DIR }}" `
|
||||
-p:SkipPluginDeploy=true
|
||||
|
||||
- name: パッケージの作成
|
||||
id: package
|
||||
shell: pwsh
|
||||
run: |
|
||||
$version = "${{ steps.version.outputs.TAG }}"
|
||||
$outDir = "UTAU/bin/Release/net10.0-windows10.0.19041.0"
|
||||
$stageRoot = "stage/UTAU"
|
||||
$pkgName = "UTAU_$version.ymme"
|
||||
|
||||
New-Item -ItemType Directory -Path $stageRoot -Force | Out-Null
|
||||
New-Item -ItemType Directory -Path "$stageRoot/LICENSE" -Force | Out-Null
|
||||
|
||||
foreach ($path in @("$outDir/plugin/UTAU.dll", "$outDir/WorldNet.dll")) {
|
||||
$name = Split-Path $path -Leaf
|
||||
if (-not (Test-Path $path)) {
|
||||
Write-Error "ビルド結果に $name が見つかりませんでした: $path"
|
||||
exit 1
|
||||
}
|
||||
Copy-Item $path "$stageRoot/"
|
||||
}
|
||||
|
||||
foreach ($lang in @("ar-sa", "en-us", "es-es", "id-id", "ko-kr", "zh-cn", "zh-tw")) {
|
||||
$src = "$outDir/$lang"
|
||||
if (Test-Path $src) {
|
||||
New-Item -ItemType Directory -Path "$stageRoot/$lang" -Force | Out-Null
|
||||
Copy-Item "$src/*.dll" "$stageRoot/$lang/"
|
||||
}
|
||||
}
|
||||
|
||||
Copy-Item ".github/LICENSE/*.txt" "$stageRoot/LICENSE/"
|
||||
Copy-Item ".github/Plugin_Readme.txt" "$stageRoot/Readme.txt"
|
||||
|
||||
$readme = Get-Content "$stageRoot/Readme.txt" -Raw
|
||||
if (-not $readme.Contains(" UTAU for YMM4 $version")) {
|
||||
Write-Error "同梱する Readme.txt の見出しが $version と一致しません"
|
||||
exit 1
|
||||
}
|
||||
|
||||
Compress-Archive -Path "stage/*" -DestinationPath $pkgName -CompressionLevel Optimal
|
||||
echo "PKG_NAME=$pkgName" >> $env:GITHUB_OUTPUT
|
||||
|
||||
- name: 変更履歴の作成
|
||||
id: changelog
|
||||
shell: pwsh
|
||||
env:
|
||||
GITEA_TOKEN: ${{ github.token }}
|
||||
TAG: ${{ steps.version.outputs.TAG }}
|
||||
REPOSITORY: ${{ github.repository }}
|
||||
SERVER_URL: ${{ github.server_url }}
|
||||
PACKAGE: ${{ steps.package.outputs.PKG_NAME }}
|
||||
run: |
|
||||
$tag = $env:TAG
|
||||
$repository = $env:REPOSITORY
|
||||
$server = $env:SERVER_URL
|
||||
$code = [char]0x60
|
||||
$fence = [string]::new($code, 3)
|
||||
$unit = [char]0x1f
|
||||
|
||||
$previous = ""
|
||||
$candidates = @(git tag --list "v*" --merged $tag --sort=-creatordate | Where-Object { $_ -ne $tag })
|
||||
if ($candidates.Count -gt 0) {
|
||||
$previous = $candidates[0]
|
||||
}
|
||||
Write-Host "直前のタグ: $previous"
|
||||
|
||||
$range = if ($previous) { "$previous..$tag" } else { $tag }
|
||||
$log = @(git log "--format=%H%x1f%s%x1f%an%x1f%ad" --date=short $range)
|
||||
|
||||
$commits = @()
|
||||
foreach ($line in $log) {
|
||||
if (-not $line) { continue }
|
||||
$fields = $line -split $unit
|
||||
if ($fields.Count -lt 4) { continue }
|
||||
$commits += [pscustomobject]@{
|
||||
Sha = $fields[0]
|
||||
Subject = $fields[1]
|
||||
Name = $fields[2]
|
||||
Date = $fields[3]
|
||||
Login = ""
|
||||
Avatar = ""
|
||||
}
|
||||
}
|
||||
Write-Host "コミット数: $($commits.Count)"
|
||||
|
||||
$pending = [System.Collections.Generic.HashSet[string]]::new()
|
||||
foreach ($commit in $commits) {
|
||||
[void]$pending.Add($commit.Sha)
|
||||
}
|
||||
|
||||
$headers = @{ Authorization = "token $env:GITEA_TOKEN" }
|
||||
|
||||
$accounts = @{}
|
||||
$page = 1
|
||||
while ($pending.Count -gt 0 -and $page -le 20) {
|
||||
$rows = @()
|
||||
try {
|
||||
$rows = @(Invoke-RestMethod -Uri "$server/api/v1/repos/$repository/commits?sha=$tag&limit=50&page=$page&stat=false&verification=false&files=false" -Headers $headers)
|
||||
}
|
||||
catch {
|
||||
Write-Host "コミットの作者を取得できませんでした: $($_.Exception.Message)"
|
||||
break
|
||||
}
|
||||
if ($rows.Count -eq 0) { break }
|
||||
|
||||
foreach ($row in $rows) {
|
||||
if ($pending.Remove($row.sha)) {
|
||||
$login = ""
|
||||
$avatar = ""
|
||||
if ($row.author) {
|
||||
$login = [string]$row.author.login
|
||||
$avatar = [string]$row.author.avatar_url
|
||||
}
|
||||
$accounts[$row.sha] = @{ Login = $login; Avatar = $avatar }
|
||||
}
|
||||
}
|
||||
|
||||
if ($rows.Count -lt 50) { break }
|
||||
$page++
|
||||
}
|
||||
|
||||
foreach ($commit in $commits) {
|
||||
if ($accounts.ContainsKey($commit.Sha)) {
|
||||
$commit.Login = $accounts[$commit.Sha].Login
|
||||
$commit.Avatar = $accounts[$commit.Sha].Avatar
|
||||
}
|
||||
}
|
||||
|
||||
$emptyTree = "4b825dc642cb6eb9a060e54bf8d69288fbee4904"
|
||||
$base = if ($previous) { $previous } else { $emptyTree }
|
||||
$shortstat = (@(git diff --shortstat $base $tag) -join " ")
|
||||
$changedFiles = 0
|
||||
$insertions = 0
|
||||
$deletions = 0
|
||||
if ($shortstat -match "(\d+) file") { $changedFiles = [int]$Matches[1] }
|
||||
if ($shortstat -match "(\d+) insertion") { $insertions = [int]$Matches[1] }
|
||||
if ($shortstat -match "(\d+) deletion") { $deletions = [int]$Matches[1] }
|
||||
$diffStat = @(git diff --stat $base $tag)
|
||||
$tagDate = (git log -1 "--format=%ad" --date=short $tag)
|
||||
|
||||
$contributors = @($commits |
|
||||
Group-Object -Property { if ($_.Login) { $_.Login } else { $_.Name } } |
|
||||
Sort-Object -Property Count -Descending)
|
||||
|
||||
function Get-Icon($avatar, $login, $size) {
|
||||
if (-not $avatar) { return "" }
|
||||
$sized = if ($avatar.Contains("?")) { "$avatar&s=$($size * 2)" } else { "$avatar" + "?s=$($size * 2)" }
|
||||
return "<img src=""$sized"" width=""$size"" height=""$size"" alt=""$login""> "
|
||||
}
|
||||
|
||||
$package = Get-Item $env:PACKAGE
|
||||
$size = [math]::Round($package.Length / 1MB, 2)
|
||||
|
||||
$body = [System.Collections.Generic.List[string]]::new()
|
||||
$body.Add("## 概要")
|
||||
$body.Add("")
|
||||
$body.Add("| 項目 | 内容 |")
|
||||
$body.Add("|---|---|")
|
||||
$body.Add("| タグ | [$tag]($server/$repository/tree/$tag) |")
|
||||
$body.Add("| 公開日 | $tagDate |")
|
||||
if ($previous) {
|
||||
$body.Add("| 直前のリリース | [$previous]($server/$repository/releases/tag/$previous) |")
|
||||
}
|
||||
$body.Add("| コミット数 | $($commits.Count) |")
|
||||
$body.Add("| 貢献者 | $($contributors.Count) 名 |")
|
||||
$body.Add("| 変更されたファイル | $changedFiles |")
|
||||
$body.Add("| 追加された行 | $insertions |")
|
||||
$body.Add("| 削除された行 | $deletions |")
|
||||
|
||||
$body.Add("")
|
||||
$body.Add("## ダウンロード")
|
||||
$body.Add("")
|
||||
$body.Add("| ファイル | サイズ |")
|
||||
$body.Add("|---|---|")
|
||||
$body.Add("| $($package.Name) | $size MB |")
|
||||
|
||||
$body.Add("")
|
||||
$body.Add("## 貢献者")
|
||||
$body.Add("")
|
||||
$body.Add("| 貢献者 | コミット数 |")
|
||||
$body.Add("|---|---|")
|
||||
foreach ($contributor in $contributors) {
|
||||
$first = $contributor.Group[0]
|
||||
if ($first.Login) {
|
||||
$name = (Get-Icon $first.Avatar $first.Login 40) + "[@$($first.Login)]($server/$($first.Login))"
|
||||
}
|
||||
else {
|
||||
$name = $first.Name
|
||||
}
|
||||
$body.Add("| $name | $($contributor.Count) |")
|
||||
}
|
||||
|
||||
$body.Add("")
|
||||
$body.Add("## 変更履歴")
|
||||
$body.Add("")
|
||||
$body.Add("| コミット | 内容 | 貢献者 | 日付 |")
|
||||
$body.Add("|---|---|---|---|")
|
||||
$maximumCommits = 300
|
||||
$listed = 0
|
||||
foreach ($commit in $commits) {
|
||||
if ($listed -ge $maximumCommits) { break }
|
||||
$short = $commit.Sha.Substring(0, 7)
|
||||
$subject = $commit.Subject -replace '\|', '\|'
|
||||
if ($commit.Login) {
|
||||
$author = (Get-Icon $commit.Avatar $commit.Login 20) + "[@$($commit.Login)]($server/$($commit.Login))"
|
||||
}
|
||||
else {
|
||||
$author = $commit.Name
|
||||
}
|
||||
$body.Add("| [$code$short$code]($server/$repository/commit/$($commit.Sha)) | $subject | $author | $($commit.Date) |")
|
||||
$listed++
|
||||
}
|
||||
if ($commits.Count -gt $maximumCommits) {
|
||||
$body.Add("")
|
||||
$body.Add("残り $($commits.Count - $maximumCommits) 件のコミットは省略しました。")
|
||||
}
|
||||
|
||||
if ($diffStat.Count -gt 0) {
|
||||
$body.Add("")
|
||||
$body.Add("## 変更されたファイル")
|
||||
$body.Add("")
|
||||
$body.Add("<details>")
|
||||
$body.Add("<summary>差分の統計</summary>")
|
||||
$body.Add("")
|
||||
$body.Add($fence)
|
||||
$maximumStatLines = 200
|
||||
$shown = 0
|
||||
foreach ($line in $diffStat) {
|
||||
if ($shown -ge $maximumStatLines) { break }
|
||||
$body.Add($line)
|
||||
$shown++
|
||||
}
|
||||
if ($diffStat.Count -gt $maximumStatLines) {
|
||||
$body.Add("... 残り $($diffStat.Count - $maximumStatLines) 行は省略しました。")
|
||||
}
|
||||
$body.Add($fence)
|
||||
$body.Add("")
|
||||
$body.Add("</details>")
|
||||
}
|
||||
|
||||
if ($previous) {
|
||||
$body.Add("")
|
||||
$body.Add("## 全ての変更")
|
||||
$body.Add("")
|
||||
$body.Add("$server/$repository/compare/$previous...$tag")
|
||||
}
|
||||
|
||||
$path = "release-body.md"
|
||||
Set-Content -Path $path -Value ($body -join "`n") -Encoding utf8NoBOM
|
||||
if (-not (Test-Path $path)) {
|
||||
throw "変更履歴を作成できませんでした。"
|
||||
}
|
||||
Write-Host "変更履歴の行数: $($body.Count)"
|
||||
$global:LASTEXITCODE = 0
|
||||
|
||||
- name: Gitea リリースの作成
|
||||
shell: pwsh
|
||||
env:
|
||||
GITEA_TOKEN: ${{ github.token }}
|
||||
REPOSITORY: ${{ github.repository }}
|
||||
SERVER_URL: ${{ github.server_url }}
|
||||
EVENT_NAME: ${{ github.event_name }}
|
||||
WORKFLOW_NAME: ${{ github.workflow }}
|
||||
JOB_NAME: ${{ github.job }}
|
||||
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}
|
||||
RELEASE_TAG: ${{ inputs.tag || github.ref_name }}
|
||||
RELEASE_NAME: ${{ steps.version.outputs.TAG }}
|
||||
RELEASE_BODY: ''
|
||||
RELEASE_BODY_PATH: release-body.md
|
||||
RELEASE_DRAFT: false
|
||||
RELEASE_PRERELEASE: false
|
||||
RELEASE_FILES: |
|
||||
${{ steps.package.outputs.PKG_NAME }}
|
||||
run: |
|
||||
$headers = @{ Authorization = "token $env:GITEA_TOKEN" }
|
||||
$api = "$env:SERVER_URL/api/v1/repos/$env:REPOSITORY"
|
||||
$tag = $env:RELEASE_TAG
|
||||
|
||||
$body = $env:RELEASE_BODY
|
||||
if ($env:RELEASE_BODY_PATH -and (Test-Path $env:RELEASE_BODY_PATH)) {
|
||||
$body = Get-Content $env:RELEASE_BODY_PATH -Raw -Encoding utf8
|
||||
}
|
||||
|
||||
$files = @()
|
||||
foreach ($pattern in ($env:RELEASE_FILES -split "[`r`n,]+" | Where-Object { $_.Trim() })) {
|
||||
$found = @(Get-ChildItem -Path $pattern.Trim() -File -ErrorAction SilentlyContinue)
|
||||
if ($found.Count -eq 0) { throw "リリースに付けるファイルが見つかりません: $pattern" }
|
||||
$files += $found
|
||||
}
|
||||
|
||||
$payload = @{
|
||||
tag_name = $tag
|
||||
name = $env:RELEASE_NAME
|
||||
body = [string]$body
|
||||
draft = ($env:RELEASE_DRAFT -eq 'true')
|
||||
prerelease = ($env:RELEASE_PRERELEASE -eq 'true')
|
||||
} | ConvertTo-Json
|
||||
$bytes = [System.Text.Encoding]::UTF8.GetBytes($payload)
|
||||
|
||||
$existing = $null
|
||||
try { $existing = Invoke-RestMethod -Uri "$api/releases/tags/$([System.Uri]::EscapeDataString($tag))" -Headers $headers } catch { }
|
||||
if ($existing) {
|
||||
$release = Invoke-RestMethod -Method Patch -Uri "$api/releases/$($existing.id)" -Headers $headers -ContentType "application/json; charset=utf-8" -Body $bytes
|
||||
foreach ($asset in @($existing.assets)) {
|
||||
Invoke-RestMethod -Method Delete -Uri "$api/releases/$($existing.id)/assets/$($asset.id)" -Headers $headers | Out-Null
|
||||
}
|
||||
} else {
|
||||
$release = Invoke-RestMethod -Method Post -Uri "$api/releases" -Headers $headers -ContentType "application/json; charset=utf-8" -Body $bytes
|
||||
}
|
||||
foreach ($file in $files) {
|
||||
$name = [System.Uri]::EscapeDataString($file.Name)
|
||||
Invoke-RestMethod -Method Post -Uri "$api/releases/$($release.id)/assets?name=$name" -Headers $headers -Form @{ attachment = Get-Item $file.FullName } | Out-Null
|
||||
Write-Host "添付しました: $($file.Name)"
|
||||
}
|
||||
Write-Host "リリースを作成しました: $($release.html_url)"
|
||||
|
||||
if ($env:EVENT_NAME -eq 'workflow_dispatch') {
|
||||
try {
|
||||
$sha = (git rev-parse HEAD).Trim()
|
||||
$status = @{
|
||||
state = 'success'
|
||||
context = "$env:WORKFLOW_NAME / $env:JOB_NAME (workflow_dispatch)"
|
||||
description = "Actions がタグ $tag のコミットから作成しました"
|
||||
target_url = $env:RUN_URL
|
||||
} | ConvertTo-Json
|
||||
Invoke-RestMethod -Method Post -Uri "$api/statuses/$sha" -Headers $headers -ContentType "application/json; charset=utf-8" -Body ([System.Text.Encoding]::UTF8.GetBytes($status)) | Out-Null
|
||||
Write-Host "タグのコミット $sha に成功の状態を付けました"
|
||||
}
|
||||
catch {
|
||||
Write-Warning "タグのコミットに状態を付けられませんでした: $($_.Exception.Message)"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
github: routersys
|
||||
@@ -0,0 +1,102 @@
|
||||
name: 不具合の報告
|
||||
description: エラーが出る、強制終了する、出力が乱れる、README と違う動きをする、といった不具合を報告します。
|
||||
title: "[Bug] "
|
||||
labels: ["bug"]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
脆弱性はここに書かず、リポジトリのセキュリティポリシーに従って非公開で報告してください。
|
||||
README と実際の動きが違い、文書のほうが誤りだと考えるときは、文書の不備を使ってください。
|
||||
|
||||
- type: input
|
||||
id: plugin-version
|
||||
attributes:
|
||||
label: プラグインのバージョン
|
||||
description: GitHub のリリースか、配布パッケージの Readme.txt の見出しで確かめられます。
|
||||
placeholder: v1.0.0
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: input
|
||||
id: ymm4-version
|
||||
attributes:
|
||||
label: YukkuriMovieMaker4 のバージョン
|
||||
description: YukkuriMovieMaker4 のメインウィンドウのタイトルに表示されるバージョンを、そのまま書いてください。
|
||||
placeholder: v4.56.1.0 Lite
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: input
|
||||
id: os
|
||||
attributes:
|
||||
label: Windows のバージョン
|
||||
description: winver を実行し、ビルド番号まで書いてください。
|
||||
placeholder: Windows 11 24H2, 26100.2605
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: input
|
||||
id: gpu
|
||||
attributes:
|
||||
label: GPU とドライバー
|
||||
description: 描画や GPU に関わる不具合では必ず書いてください。デバイスマネージャーか dxdiag に表示される GPU の名前と、ドライバーのバージョンです。
|
||||
|
||||
- type: textarea
|
||||
id: expected
|
||||
attributes:
|
||||
label: 期待した動き
|
||||
description: 何が起きると考えたか。README に根拠があれば、その箇所も書いてください。
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: actual
|
||||
attributes:
|
||||
label: 実際の動き
|
||||
description: 実際に起きたこと。エラー画面が出たときは、その内容を省略せずに貼ってください。
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: steps
|
||||
attributes:
|
||||
label: 再現の手順
|
||||
description: |
|
||||
新しいプロジェクトから不具合が起きるまでの操作を、番号を付けて書いてください。変えた設定の項目と値も書いてください。
|
||||
プロジェクトファイルや素材は、zip に圧縮して添付できます。添付したファイルは誰でも見られます。プロジェクトファイルには素材を置いたフォルダーのパスが記録されるので、公開できない情報が無いかを確かめてください。
|
||||
placeholder: |
|
||||
1. 新しいプロジェクトを作る
|
||||
2. アイテムを置き、本プラグインを使う
|
||||
3. 設定を変える
|
||||
4. 不具合が起きる
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: dropdown
|
||||
id: frequency
|
||||
attributes:
|
||||
label: 起きる頻度
|
||||
description: ときどき起きるときは、何回試して何回起きたかを、下の「その他」の欄に書いてください。
|
||||
options:
|
||||
- 毎回起きる
|
||||
- ときどき起きる
|
||||
- 一度だけ起きた
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: context
|
||||
attributes:
|
||||
label: その他
|
||||
description: 一緒に使っているほかのプラグインや、関係すると思われることを書いてください。
|
||||
|
||||
- type: checkboxes
|
||||
id: checks
|
||||
attributes:
|
||||
label: 報告の前に
|
||||
options:
|
||||
- label: 最新のリリースを使っています。
|
||||
required: true
|
||||
- label: 既存の Issue を検索し、同じ報告が無いことを確かめました。
|
||||
required: true
|
||||
@@ -0,0 +1,5 @@
|
||||
blank_issues_enabled: false
|
||||
contact_links:
|
||||
- name: YukkuriMovieMaker4 本体の不具合
|
||||
url: https://manjubox.net/contact/
|
||||
about: 本体に原因がある不具合は、YukkuriMovieMaker4 の「ヘルプ」の「フィードバックを送信」か、公式サイトのお問い合わせから報告してください。
|
||||
@@ -0,0 +1,63 @@
|
||||
name: 文書の不備
|
||||
description: 誤り、書き漏れ、実際の動きとの食い違いがある文書を報告します。
|
||||
title: "[Docs] "
|
||||
labels: ["documentation"]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
実際の動きと文書が食い違うときは、ここで報告して構いません。動きのほうが誤りだと考えるときは、不具合の報告を使ってください。
|
||||
|
||||
- type: dropdown
|
||||
id: location
|
||||
attributes:
|
||||
label: 文書
|
||||
options:
|
||||
- README
|
||||
- 配布パッケージの Readme.txt
|
||||
- 設定の項目の名前や説明
|
||||
- 貢献の手引き、セキュリティポリシー、行動規範
|
||||
- その他
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: input
|
||||
id: reference
|
||||
attributes:
|
||||
label: 文書の中の位置
|
||||
description: 見出し、行番号、設定の項目の名前のどれかを書いてください。
|
||||
placeholder: README の「制限事項」の 2 つ目の項目
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: says
|
||||
attributes:
|
||||
label: 今の記述
|
||||
description: そのまま引用してください。元の文書を開かずに検討できるようにするためです。
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: problem
|
||||
attributes:
|
||||
label: どこが問題か
|
||||
description: |
|
||||
誤り、書き漏れ、曖昧さのどれに当たるかを書いてください。それによって読む人が何を取り違えるかも書いてください。
|
||||
実際の動きと食い違っているときは、文書と動きのどちらを直すべきと考えるかも書いてください。
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: suggestion
|
||||
attributes:
|
||||
label: 提案する文面
|
||||
description: 具体的な文面があると、早く直せます。
|
||||
|
||||
- type: checkboxes
|
||||
id: checks
|
||||
attributes:
|
||||
label: 報告の前に
|
||||
options:
|
||||
- label: 最新のリリースか、既定のブランチの最新の文書で確かめました。
|
||||
required: true
|
||||
@@ -0,0 +1,42 @@
|
||||
name: 機能の提案
|
||||
description: 新しい機能や設定の項目、既存の動きの変更を提案します。
|
||||
title: "[Proposal] "
|
||||
labels: ["enhancement"]
|
||||
body:
|
||||
- type: textarea
|
||||
id: problem
|
||||
attributes:
|
||||
label: 困っていること
|
||||
description: 今のプラグインでできないことや、手間がかかることを、利用者の立場で書いてください。
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: workaround
|
||||
attributes:
|
||||
label: 今はどうしているか
|
||||
description: 今の回避策と、それにかかる手間を書いてください。回避策が無ければ、その旨を書いてください。
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: proposal
|
||||
attributes:
|
||||
label: 提案する動き
|
||||
description: どう動いてほしいかを書いてください。設定の項目を増やす提案では、項目の名前、範囲、既定値の案も書いてください。
|
||||
|
||||
- type: textarea
|
||||
id: alternatives
|
||||
attributes:
|
||||
label: 検討したほかの方法
|
||||
description: ほかに考えた方法があれば、それでは足りない理由と一緒に書いてください。
|
||||
|
||||
- type: checkboxes
|
||||
id: checks
|
||||
attributes:
|
||||
label: 提案の前に
|
||||
options:
|
||||
- label: 既存の Issue を検索し、同じ提案が無いことを確かめました。
|
||||
required: true
|
||||
- label: 最新のリリースに同じ機能が無いことを確かめました。
|
||||
required: true
|
||||
@@ -0,0 +1,49 @@
|
||||
name: 使い方の質問
|
||||
description: 使い方や、実際の動きが仕様どおりかを尋ねます。
|
||||
title: "[Question] "
|
||||
labels: ["question"]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
プラグインの不具合だと分かっているときは、不具合の報告を使ってください。
|
||||
|
||||
- type: textarea
|
||||
id: question
|
||||
attributes:
|
||||
label: 質問
|
||||
description: 背景を書く前に、質問を 1 文か 2 文で書いてください。
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: goal
|
||||
attributes:
|
||||
label: 何をしようとしているか
|
||||
description: つまずいている操作だけでなく、最終的に何を作りたいかを書いてください。
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: tried
|
||||
attributes:
|
||||
label: 試したこと
|
||||
description: 試した設定と、そのとき実際に起きたことを書いてください。
|
||||
|
||||
- type: input
|
||||
id: plugin-version
|
||||
attributes:
|
||||
label: プラグインのバージョン
|
||||
placeholder: v1.0.0
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: checkboxes
|
||||
id: checks
|
||||
attributes:
|
||||
label: 質問の前に
|
||||
options:
|
||||
- label: README の該当する節を読みました。
|
||||
required: true
|
||||
- label: 既存の Issue を検索し、同じ質問が無いことを確かめました。
|
||||
required: true
|
||||
@@ -0,0 +1,24 @@
|
||||
NAudio
|
||||
|
||||
|
||||
MIT License
|
||||
|
||||
Copyright © Mark Heath & Contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
+51
-1
@@ -1,5 +1,5 @@
|
||||
========================================
|
||||
UTAU for YMM4 v1.7.2
|
||||
UTAU for YMM4 v1.7.5
|
||||
========================================
|
||||
YukkuriMovieMaker4(YMM4)上で動作する、UTAU 音源から歌声を合成する
|
||||
音声合成プラグインです。
|
||||
@@ -109,6 +109,54 @@ WorldNet で分析して合成し直します。
|
||||
|
||||
- 本プラグインを使用する前に、YMM4 プロジェクトファイルのバックアップを
|
||||
作成することを推奨します。
|
||||
--------------------------------------------------------------------------------
|
||||
■ 不具合の報告
|
||||
--------------------------------------------------------------------------------
|
||||
本プラグインは、想定していない例外が起きたときに、その内容を開発者へ自動で
|
||||
送信します。同意は求めません。止める設定もありません。
|
||||
|
||||
送信する数には上限があります。YMM4 の 1 回の起動で送る報告は、
|
||||
YMM4-Telemetry で報告する別のプラグインと合わせて 20 件までです。
|
||||
例外の型と発生位置が同じ報告は 3 件までです。上限を超えた報告と、
|
||||
送信先から待つよう求められている間に起きた報告は、送信も退避もしません。
|
||||
|
||||
送信する情報は次のとおりです。
|
||||
例外 : 型の完全名、メッセージ、スタックトレース
|
||||
発生位置 : モジュール名、関数名、ファイル名、行番号、
|
||||
プラグイン自身のコードかどうか
|
||||
プラグイン : アセンブリ名、バージョン
|
||||
実行環境 : OS の名前とバージョン、.NET のバージョン、
|
||||
CPU のアーキテクチャ、論理プロセッサ数
|
||||
識別子 : YMM4 の起動ごとに決まるセッション識別子、報告ごとの識別子
|
||||
時刻 : 報告を作った時刻(UTC)
|
||||
|
||||
利用者の名前、プロジェクトの名前、音源の名前、歌詞、音声ファイルの中身は
|
||||
送信しません。継続して個人を追跡する識別子も持ちません。セッション識別子は
|
||||
YMM4 を起動し直すと別の値になります。メッセージとファイル名に含まれる
|
||||
利用者名などの文字列は、送信の前に置き換えます。送信元の IP アドレスは
|
||||
受信側へ渡す手前で取り除いています。
|
||||
|
||||
送信するのは想定していない例外だけです。本プラグインが例外を握り潰す箇所と、
|
||||
YMM4 へ処理を返す境界の両方で報告します。画面の操作やバックグラウンドの
|
||||
処理で未処理になった例外も報告しますが、本プラグインのコードが関わる例外に
|
||||
限ります。YMM4 本体やほかのプラグインで起きた例外は送信しません。
|
||||
|
||||
次の例外は送信しません。
|
||||
利用者へ知らせるための失敗 : エイリアスが見つからない、合成できるノートが
|
||||
ない、セリフが空
|
||||
更新の確認の通信の失敗 : GitHub へ接続できない
|
||||
探索と設定ファイルの読み取りで想定している失敗 : フォルダーを開く権限が
|
||||
ない、文字コードを判別できない、パスが長すぎる
|
||||
|
||||
音源の音声ファイルを読み込めなかった場合は送信します。読み込みの不具合を
|
||||
見つけるためです。
|
||||
|
||||
送信できなかった報告は YMM4 のユーザーフォルダーへ退避します。
|
||||
次に YMM4 を起動したあと、本プラグインを読み込むか、
|
||||
同じく YMM4-Telemetry で報告する別のプラグインが動き始めると、
|
||||
退避した報告を 1 回の起動で 10 件まで送り直します。
|
||||
送信も再送も非同期に行うため、起動と合成が遅くなることは
|
||||
ありません。
|
||||
--------------------------------------------------------------------------------
|
||||
■ 免責事項
|
||||
--------------------------------------------------------------------------------
|
||||
@@ -125,10 +173,12 @@ WorldNet で分析して合成し直します。
|
||||
本プラグインは音声の分析と合成に WorldNet(MIT License)を同梱しています。
|
||||
WorldNet は M. Morise 氏の WORLD(修正 BSD License)を C# へ移植した物で、
|
||||
高速フーリエ変換には Takuya OOURA 氏の FFT パッケージを用いています。
|
||||
音声ファイルの読み書きには NAudio(MIT License)を同梱しています。
|
||||
歌詞をまとめて編集するときの区切り方は OpenUtau(MIT License)の規約に
|
||||
合わせています。
|
||||
ライセンスの全文は同梱の LICENSE フォルダーに収録しています。
|
||||
WorldNet : Copyright (c) 2026 routersys
|
||||
NAudio : Copyright (c) Mark Heath & Contributors
|
||||
WORLD : Copyright (c) 2010 M. Morise
|
||||
Ooura FFT : Copyright Takuya OOURA, 1996-2001
|
||||
OpenUtau : Copyright (c) 2014 StAkira
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
<!--
|
||||
当てはまらない節は消してください。「関連する Issue」と「動きの変更」の節は残し、該当しないときは「なし」と書いてください。
|
||||
-->
|
||||
|
||||
## 概要
|
||||
|
||||
<!--
|
||||
何をどう変えたか。なぜその変更が必要か。
|
||||
-->
|
||||
|
||||
## 関連する Issue
|
||||
|
||||
<!--
|
||||
新しい機能、設定の項目や既定値の変更、大きめの不具合の修正、意図して出力を変える変更、互換性を損なう変更、コードの構成を大きく変える変更は、先に Issue で合意してください。
|
||||
Issue が無い変更では、下の行を「なし」に書き換えてください。
|
||||
-->
|
||||
|
||||
Closes #
|
||||
|
||||
## 変更の種類
|
||||
|
||||
<!-- 当てはまるものを残してください。 -->
|
||||
|
||||
- 不具合の修正
|
||||
- 機能の追加
|
||||
- 動きの変更
|
||||
- 性能の改善
|
||||
- テストの追加
|
||||
- 依存関係の更新
|
||||
- 文書
|
||||
- ビルド、リリース
|
||||
|
||||
## 動きの変更
|
||||
|
||||
<!--
|
||||
利用者から見て何が変わるか。設定の項目、既定値、出力の結果、エラーの出方の変化も含みます。
|
||||
保存済みのプロジェクトの結果が変わるなら、必ず書いてください。
|
||||
-->
|
||||
|
||||
## 検証
|
||||
|
||||
<!--
|
||||
手元で実際に確かめた結果を書いてください。
|
||||
- ビルドの結果と、テストのプロジェクトがあればテストの結果
|
||||
- YukkuriMovieMaker4 で実際に動かして確かめたこと
|
||||
- 実行できなかったテストと、その理由
|
||||
実際に動かして観察したこと、コードを読んで判断したこと、推測したことを分けて書いてください。
|
||||
-->
|
||||
|
||||
使った YukkuriMovieMaker4 のバージョン:
|
||||
|
||||
GPU に関わる変更では、使った GPU とドライバー:
|
||||
|
||||
## 確認
|
||||
|
||||
<!-- テストのプロジェクトが無いリポジトリでは、実装とテストを分ける項目を消してください。 -->
|
||||
|
||||
- [ ] 1 つの目的の変更だけを含み、関係の無い整理や整形を含めていない。
|
||||
- [ ] どのコミットも、それ単独でビルドが通る。
|
||||
- [ ] 実装の変更と、それを確かめるテストを、別のコミットに分けた。
|
||||
- [ ] コミットの件名は日本語で書き、50 文字以内に収め、「〜する」の形で終えた。日本語で書けない場合は、その旨を「レビューで見てほしい点」に書いた。
|
||||
- [ ] コミットの本文は、リリースノートでの変更の分類を指定する行を求められたときだけ書いた。
|
||||
- [ ] 変更する箇所で既に使われている実装のパターンに従った。
|
||||
- [ ] 新しく書いたコードにコメントを入れず、コメントアウトしたコードも残していない。既存のコメントとドキュメントコメントは残した。
|
||||
- [ ] 自分の変更で増えたビルドの警告を直した。
|
||||
- [ ] 出力を変えるつもりの無い変更では、変更前と変更後で出力が一致することを確かめた。
|
||||
- [ ] この変更と関係の無い依存関係の更新を含めていない。
|
||||
- [ ] 動きを変えた場合、README を直した。`.github/Plugin_Readme.txt` があるリポジトリでは、それも直した。
|
||||
- [ ] バージョンを上げる変更を含めていない。
|
||||
|
||||
## 性能の改善を主張する場合
|
||||
|
||||
<!-- それ以外の場合は、この節ごと消してください。 -->
|
||||
|
||||
- [ ] 同じ機材、ドライバー、設定、電源の条件で、変更前と変更後のビルドを交互に繰り返し測った。
|
||||
- [ ] 測定の間を空け、ほかのプロセスが GPU を使っていない状態で測った。
|
||||
- [ ] 正しさの確認と性能の測定を、別々に実行した。
|
||||
|
||||
<!--
|
||||
測定の条件と、測定値。
|
||||
-->
|
||||
|
||||
## レビューで見てほしい点
|
||||
|
||||
<!--
|
||||
判断に迷った点、意見を聞きたい点、意図して外した部分とその理由。
|
||||
-->
|
||||
@@ -112,8 +112,8 @@ jobs:
|
||||
New-Item -ItemType Directory -Path $stageRoot -Force | Out-Null
|
||||
New-Item -ItemType Directory -Path "$stageRoot/LICENSE" -Force | Out-Null
|
||||
|
||||
foreach ($name in @("UTAU.dll", "WorldNet.dll")) {
|
||||
$path = "$outDir/$name"
|
||||
foreach ($path in @("$outDir/plugin/UTAU.dll", "$outDir/WorldNet.dll")) {
|
||||
$name = Split-Path $path -Leaf
|
||||
if (-not (Test-Path $path)) {
|
||||
Write-Error "ビルド結果に $name が見つかりませんでした: $path"
|
||||
exit 1
|
||||
|
||||
+5
-2
@@ -1,6 +1,9 @@
|
||||
[submodule "YukkuriMovieMaker.Generator"]
|
||||
path = YukkuriMovieMaker.Generator
|
||||
url = https://github.com/manju-summoner/YukkuriMovieMaker.Generator
|
||||
url = https://git.routersys.com/manju-summoner/YukkuriMovieMaker.Generator
|
||||
[submodule "YMM4-GitHubUpdateNotifier"]
|
||||
path = YMM4-GitHubUpdateNotifier
|
||||
url = https://github.com/routersys/YMM4-GitHubUpdateNotifier.git
|
||||
url = https://git.routersys.com/routersys/YMM4-GitHubUpdateNotifier.git
|
||||
[submodule "YMM4-Telemetry"]
|
||||
path = YMM4-Telemetry
|
||||
url = https://git.routersys.com/routersys/YMM4-Telemetry.git
|
||||
@@ -0,0 +1,81 @@
|
||||
# Contributor Covenant 行動規範
|
||||
|
||||
## 私たちの約束
|
||||
|
||||
メンバー、貢献者、リーダーである私たちは、年齢、体格、目に見える障害と目に見えない障害、民族、性的特徴、性自認と性表現、経験の程度、教育、社会経済的地位、国籍、外見、人種、宗教、性的アイデンティティと性的指向を問わず、コミュニティへの参加を誰にとっても嫌がらせの無いものにすることを誓います。
|
||||
|
||||
私たちは、開かれていて誰もが歓迎される、多様で包摂的な、健全なコミュニティを作るように行動し、交流することを誓います。
|
||||
|
||||
## 私たちの基準
|
||||
|
||||
コミュニティのよい環境を作る行動の例は、次のとおりです。
|
||||
|
||||
- ほかの人に共感と思いやりを示す
|
||||
- 異なる意見、視点、経験を尊重する
|
||||
- 建設的な意見を伝え、また快く受け入れる
|
||||
- 自分たちの誤りに責任を持ち、影響を受けた人に謝り、その経験から学ぶ
|
||||
- 自分個人にとってだけでなく、コミュニティ全体にとって最善のことを考える
|
||||
|
||||
受け入れられない行動の例は、次のとおりです。
|
||||
|
||||
- 性的な言葉や画像を使うこと、どのような形であれ、相手に性的な関心を向けることや言い寄ること
|
||||
- 荒らし、侮辱的または軽蔑的な発言、個人攻撃や政治的な攻撃
|
||||
- 公の場か私的な場かを問わない嫌がらせ
|
||||
- 住所やメールアドレスなど、ほかの人の個人情報を明示の許可なく公開すること
|
||||
- 仕事の場で不適切と合理的に考えられるその他の行為
|
||||
|
||||
## 執行の責任
|
||||
|
||||
コミュニティリーダーは、受け入れられる行動の基準を明確にし、それを守らせる責任を負います。不適切、脅迫的、攻撃的、または有害と判断した行動には、適切で公正な是正措置をとります。
|
||||
|
||||
コミュニティリーダーは、この行動規範に沿わないコメント、コミット、コード、Wiki の編集、Issue、その他の貢献を削除、編集、または却下する権利と責任を持ちます。モデレーションの判断については、適切な場合に理由を伝えます。
|
||||
|
||||
## 適用範囲
|
||||
|
||||
この行動規範は、コミュニティのあらゆる場で適用されます。個人が公の場でコミュニティを公式に代表しているときにも適用されます。コミュニティを代表しているときとは、たとえば、公式のメールアドレスを使うとき、公式のソーシャルメディアのアカウントから投稿するとき、オンラインやオフラインのイベントで任命された代表として行動するときです。
|
||||
|
||||
## 執行
|
||||
|
||||
虐待的な言動、嫌がらせ、その他の受け入れられない行動は、執行を担当するコミュニティリーダーへ github.routersys@gmail.com で報告できます。コミュニティリーダーは、すべての苦情を速やかかつ公正に確認し、調査します。
|
||||
|
||||
すべてのコミュニティリーダーは、事案を報告した人のプライバシーと安全を尊重する義務を負います。
|
||||
|
||||
## 執行のガイドライン
|
||||
|
||||
コミュニティリーダーは、この行動規範に違反すると判断した行動への処置を決めるとき、次に示すコミュニティへの影響に応じたガイドラインに従います。
|
||||
|
||||
### 1. 是正
|
||||
|
||||
コミュニティへの影響: 不適切な言葉づかいや、コミュニティの中で、仕事の場にふさわしくない、または歓迎されないと判断されるその他の行動。
|
||||
|
||||
処置: コミュニティリーダーが、非公開の書面による警告を送ります。違反の内容を明らかにし、その行動がなぜ不適切だったかを説明します。公の場での謝罪を求めることがあります。
|
||||
|
||||
### 2. 警告
|
||||
|
||||
コミュニティへの影響: 1 回の出来事、または一連の行動による違反。
|
||||
|
||||
処置: 行動が続いた場合の処置を示した警告を送ります。警告を受けた人は、定められた期間、関係する人々とやり取りしてはいけません。行動規範を執行する人々へ、求められていないのに接触することも、これに含まれます。コミュニティの場だけでなく、ソーシャルメディアなど外部の場でのやり取りも避けなければなりません。これらの条件に違反すると、一時的または永久的な参加禁止につながることがあります。
|
||||
|
||||
### 3. 一時的な参加禁止
|
||||
|
||||
コミュニティへの影響: 不適切な行動を続けることを含む、コミュニティの基準への重大な違反。
|
||||
|
||||
処置: 定められた期間、コミュニティとのあらゆるやり取りと、コミュニティに向けた公の発信を禁止します。この期間中は、公の場か私的な場かを問わず、関係する人々とのやり取りを認めません。行動規範を執行する人々へ、求められていないのに接触することも、これに含まれます。これらの条件に違反すると、永久的な参加禁止につながることがあります。
|
||||
|
||||
### 4. 永久的な参加禁止
|
||||
|
||||
コミュニティへの影響: コミュニティの基準に繰り返し違反すること。不適切な行動を続けること、個人への嫌がらせ、特定の属性を持つ人々への攻撃や中傷も、これに当たります。
|
||||
|
||||
処置: コミュニティの中でのあらゆる公のやり取りを、永久に禁止します。
|
||||
|
||||
## 出典
|
||||
|
||||
この行動規範は、[Contributor Covenant][homepage] のバージョン 2.0 を基にしています。原文は https://www.contributor-covenant.org/version/2/0/code_of_conduct.html にあります。日本語の文は、公式の日本語訳 https://www.contributor-covenant.org/ja/version/2/0/code_of_conduct/ を基に、原文と照らし合わせて改めたものです。
|
||||
|
||||
Contributor Covenant は、[クリエイティブ・コモンズ 表示 4.0 国際 ライセンス](https://creativecommons.org/licenses/by/4.0/deed.ja)のもとで提供されています。
|
||||
|
||||
コミュニティへの影響に応じたガイドラインは、[Mozilla の行動規範の執行の段階](https://github.com/mozilla/diversity)に着想を得ています。
|
||||
|
||||
[homepage]: https://www.contributor-covenant.org
|
||||
|
||||
この行動規範についてのよくある質問と回答は、https://www.contributor-covenant.org/faq にあります。ほかの言語の訳は、https://www.contributor-covenant.org/translations にあります。
|
||||
+168
@@ -0,0 +1,168 @@
|
||||
# 貢献の手引き
|
||||
|
||||
本プラグインへの貢献に関心を持っていただき、ありがとうございます。この手引きは、Issue の立て方、プルリクエストの作り方、変更の確かめ方、コードとコミットの書き方を定めます。
|
||||
|
||||
本プラグインでできることとできないことは、[README](README.md) に書いてあります。まず README を読んでください。
|
||||
|
||||
---
|
||||
|
||||
## 目次
|
||||
|
||||
1. [貢献の進め方](#貢献の進め方)
|
||||
2. [開発環境](#開発環境)
|
||||
3. [Issue](#issue)
|
||||
4. [プルリクエスト](#プルリクエスト)
|
||||
5. [検証](#検証)
|
||||
6. [コードの規約](#コードの規約)
|
||||
7. [コミットの規約](#コミットの規約)
|
||||
8. [行動規範](#行動規範)
|
||||
|
||||
---
|
||||
|
||||
## 貢献の進め方
|
||||
|
||||
誤字の修正、文書の修正、軽微な不具合の修正は、そのままプルリクエストを送ってください。
|
||||
|
||||
新しい機能、設定の項目や既定値の変更、大きめの不具合の修正、意図して出力を変える変更、互換性を損なう変更、コードの構成を大きく変える変更は、先に Issue を立ててください。実装を始める前に、意図する動きと変更の範囲について合意するためです。どちらに当たるか迷ったときも、Issue を立ててください。
|
||||
|
||||
脆弱性は Issue に書かず、[セキュリティポリシー](SECURITY.md)に従って非公開で報告してください。
|
||||
|
||||
Issue とプルリクエストは、日本語か英語で書いてください。
|
||||
|
||||
---
|
||||
|
||||
## 開発環境
|
||||
|
||||
| 項目 | 要件 |
|
||||
|---|---|
|
||||
| OS | Windows 10 バージョン 2004 以降の 64bit 版 |
|
||||
| SDK | .NET 10 |
|
||||
| YukkuriMovieMaker4 | ビルドがインストール先の DLL を参照するため、手元に入れておく |
|
||||
| シェーダーのビルド | HLSL をビルドのときにコンパイルするリポジトリでは Windows SDK が要る。シェーダーを `.vcxproj` でビルドするリポジトリでは、Visual Studio 2026 の「C++ によるデスクトップ開発」も要る |
|
||||
|
||||
### 取得
|
||||
|
||||
リポジトリをフォークし、自分のフォークをクローンしてください。リポジトリはサブモジュールを含むことがあるので、`--recursive` を付けます。
|
||||
|
||||
```console
|
||||
git clone --recursive https://github.com/<自分のアカウント>/<リポジトリ名>.git
|
||||
```
|
||||
|
||||
`--recursive` を付けずにクローンしたときは、後から次のコマンドでサブモジュールを取得できます。
|
||||
|
||||
```console
|
||||
git submodule update --init --recursive
|
||||
```
|
||||
|
||||
作業は `main` から切ったブランチで行ってください。
|
||||
|
||||
### YukkuriMovieMaker4 の場所
|
||||
|
||||
YukkuriMovieMaker4 のインストール先は、MSBuild のプロパティ `YMM4DirPath` で渡します。値の末尾には `\` を付けてください。
|
||||
|
||||
- コマンドラインでは、`-p:YMM4DirPath="<インストール先>\"` を付けてビルドします。PowerShell 7 以降で実行してください。Windows PowerShell 5.1 と cmd では、末尾の `\"` が正しく渡らないため、末尾を `\\"` と書いてください。
|
||||
- Visual Studio でビルドするときは、プラグインのプロジェクトのフォルダーか、その上のフォルダーに `Directory.Build.props` があれば、その `YMM4DirPath` を手元で書き換えます。無ければ、環境変数 `YMM4DirPath` を設定します。書き換えた `Directory.Build.props` はコミットに含めないでください。サブモジュールの中にある `Directory.Build.props` は書き換えないでください。
|
||||
|
||||
### ビルド
|
||||
|
||||
ソリューションを開き、Release でビルドしてください。
|
||||
|
||||
シェーダーを `.vcxproj` でビルドするリポジトリでは、コマンドラインのビルドに Visual Studio の MSBuild を使ってください。.NET SDK の `dotnet` コマンドは `.vcxproj` を扱えません。テストは、`dotnet test <名前>.Tests\<名前>.Tests.csproj` のようにテストのプロジェクトのファイルを指定して実行してください。ビルドの手順は、`.github/workflows/release.yml` があればそこに書いてあります。
|
||||
|
||||
多くのリポジトリでは、ビルドの後にプラグインが YukkuriMovieMaker4 の `user\plugin` フォルダーへ自動でコピーされます。
|
||||
|
||||
- YukkuriMovieMaker4 を起動したままだと、コピーの段階で失敗します。ビルドの前に終了してください。
|
||||
- 配布版のプラグインを入れているときは、同じ名前のファイルが上書きされます。
|
||||
- コマンドラインでソリューションをビルドしたときはコピーしないリポジトリがあります。その場合は、プラグインのプロジェクトを指定してビルドしてください。
|
||||
- `.csproj` に `SkipPluginDeploy` の条件があるリポジトリでは、`-p:SkipPluginDeploy=true` を付けるとコピーせずにビルドできます。
|
||||
|
||||
---
|
||||
|
||||
## Issue
|
||||
|
||||
Issue はテンプレートから立ててください。不具合の報告、文書の不備、機能の提案、使い方の質問の 4 つがあります。
|
||||
|
||||
不具合の報告には、次の内容を書いてください。
|
||||
|
||||
- 期待した動きと、実際の動き
|
||||
- 再現の手順。できれば、問題が起きる最小のプロジェクトファイルや素材
|
||||
- プラグインのバージョン、YukkuriMovieMaker4 のバージョン、Windows のバージョン
|
||||
- 描画や GPU に関わる不具合では、GPU の名前とドライバーのバージョン
|
||||
- エラー画面に出た内容。省略せずに貼ってください
|
||||
|
||||
ときどきしか起きない不具合も、確実な再現の手順が無いまま報告して構いません。何回試して何回起きたかと、どの操作の後に起きたかを書いてください。
|
||||
|
||||
コードを読んで見つけた不具合を報告するときは、実際に再現を確かめたかどうかも書いてください。
|
||||
|
||||
Issue に添付したファイルは、誰でも見られます。プロジェクトファイルには、素材を置いたフォルダーのパスが記録されています。パスにユーザー名が含まれることがあるので、公開できない情報が無いかを確かめてから添付してください。
|
||||
|
||||
不具合の情報を自動で送信するプラグインでも、Issue での報告には意味があります。自動で送られるのは、例外の内容と実行環境の一部です。そこに至った操作、YukkuriMovieMaker4 のバージョン、GPU、例外を伴わない描画の乱れは届きません。
|
||||
|
||||
---
|
||||
|
||||
## プルリクエスト
|
||||
|
||||
1 つのプルリクエストには、1 つの目的の変更だけを含めてください。関係の無い整理、整形、依存関係の更新を含めないでください。依存関係を更新するのは、必要な機能を使うため、不具合やセキュリティの問題を直すため、互換性を保つためなど、具体的な理由があるときだけにしてください。
|
||||
|
||||
特に注意が要るのは、次の箇所です。
|
||||
|
||||
- 設定の項目と、その既定値と範囲。保存済みのプロジェクトの結果が変わるおそれがある
|
||||
- 出力の結果。変えるつもりの無い変更で、映像や音が変わっていないか
|
||||
- GPU のリソース、ファイル、ハンドルの寿命
|
||||
- 破棄の処理と、失敗したときの処理
|
||||
- YukkuriMovieMaker4 の内部に手を入れるプラグインでは、YukkuriMovieMaker4 のバージョンによる違い
|
||||
|
||||
動きを変えたときは、同じプルリクエストで README を直してください。`.github/Plugin_Readme.txt` があるリポジトリでは、それも直してください。`Plugin_Readme.txt` は配布パッケージに `Readme.txt` として入り、利用者の手元に残ります。
|
||||
|
||||
バージョンを上げる変更は、プルリクエストに含めないでください。バージョンの更新とリリースは、開発者が行います。
|
||||
|
||||
レビューを受けて直すときは、コミットを目的ごとのまとまりに保つため、ブランチの履歴を組み直して強制プッシュして構いません。
|
||||
|
||||
プルリクエストを送った時点で、その貢献をリポジトリと同じライセンスで提供することに同意したものとみなします。リポジトリのライセンスは、リポジトリの直下にあるライセンスのファイルに書いてあります。
|
||||
|
||||
---
|
||||
|
||||
## 検証
|
||||
|
||||
プルリクエストには、手元で実際に確かめた結果を書いてください。
|
||||
|
||||
- ビルドの結果と、テストのプロジェクトがあればテストの結果
|
||||
- YukkuriMovieMaker4 で実際に動かして確かめたこと。使った YukkuriMovieMaker4 のバージョンを添え、GPU に関わる変更では GPU の名前とドライバーのバージョンも添えてください
|
||||
- 実行できなかったテストと、その理由
|
||||
|
||||
実際に動かして観察したこと、コードを読んで判断したこと、推測したことを分けて書いてください。
|
||||
|
||||
出力を変えるつもりの無い変更では、変更前と変更後で出力が一致することを確かめてください。`--golden` と `--verify` を持つハーネスのプロジェクトがあるリポジトリでは、それで描画を比べられます。基準値は、手元の環境で変更前のコミットから作り直し、作り直した基準値はコミットに含めないでください。そのようなハーネスが無いリポジトリでは、変更前と変更後の出力を比べてください。サブモジュールの中にあるハーネスは、この確認には使いません。
|
||||
|
||||
性能の改善を主張するときは、1 回の測定で判断しないでください。
|
||||
|
||||
- 同じ機材、ドライバー、設定、電源の条件で、変更前と変更後のビルドを交互に繰り返し測ってください。
|
||||
- GPU と CPU の温度で値が変わるため、測定の間を空けてください。
|
||||
- ほかのプロセスが GPU を使っていない状態で測ってください。
|
||||
- 正しさの確認と性能の測定は、別々に実行してください。確認のための処理が、測定値を変えるためです。
|
||||
|
||||
---
|
||||
|
||||
## コードの規約
|
||||
|
||||
変更する箇所で既に使われている実装のパターンと書き方に従ってください。既存の実装どうしが食い違っているときは、どちらかを機械的にまねず、README とテストに照らして意図された動きを確かめ、それに合うほうへ揃えてください。
|
||||
|
||||
自分の変更で増えたビルドの警告は、放置せず原因を直してください。
|
||||
|
||||
新しく書くコードには、コメントを入れず、コメントアウトしたコードも残さないでください。既存のコードにあるコメントとドキュメントコメントは残してください。
|
||||
|
||||
---
|
||||
|
||||
## コミットの規約
|
||||
|
||||
- 1 つのコミットは、目的ごとのまとまりを保てる範囲で、できるだけ小さくしてください。どのコミットも、それ単独でビルドが通るようにしてください。
|
||||
- 実装の変更と、それを確かめるテストは、別のコミットに分けてください。
|
||||
- 件名は日本語で書き、50 文字以内に収め、「〜する」の形で終えてください。「〜を追加する」「〜を直す」はよい例です。「〜の追加」「〜を修正」のように名詞で終える形は使いません。
|
||||
- 件名を日本語で書けないときは、プルリクエストにその旨を書いてください。
|
||||
- 本文は書かないでください。例外は、リリースノートでの変更の分類を指定する行だけです。この行が要るときは、書き方をレビューで伝えます。
|
||||
|
||||
---
|
||||
|
||||
## 行動規範
|
||||
|
||||
貢献するすべての人に、[行動規範](CODE_OF_CONDUCT.md)に従うことを求めます。
|
||||
@@ -11,7 +11,7 @@ YukkuriMovieMaker4(YMM4)上で動作する、UTAU 音源から歌声を合
|
||||
単独音・連続音・CVVC のいずれの音源にも対応し、UST ファイルの読み込みにも対応します。
|
||||
セリフのかなから組み立てたノートは、ピアノロールのノートエディターで編集できます。
|
||||
|
||||

|
||||

|
||||
|
||||
---
|
||||
|
||||
@@ -34,9 +34,10 @@ YukkuriMovieMaker4(YMM4)上で動作する、UTAU 音源から歌声を合
|
||||
9. [対応フォーマット](#対応フォーマット)
|
||||
10. [制限事項](#制限事項)
|
||||
11. [注意事項](#注意事項)
|
||||
12. [免責事項](#免責事項)
|
||||
13. [サードパーティライセンス](#サードパーティライセンス)
|
||||
14. [ライセンス](#ライセンス)
|
||||
12. [不具合の報告](#不具合の報告)
|
||||
13. [免責事項](#免責事項)
|
||||
14. [サードパーティライセンス](#サードパーティライセンス)
|
||||
15. [ライセンス](#ライセンス)
|
||||
|
||||
---
|
||||
|
||||
@@ -139,7 +140,7 @@ YukkuriMovieMaker4(YMM4)上で動作する、UTAU 音源から歌声を合
|
||||
|
||||
分析は 5 ミリ秒間隔で行い、基本周波数は 55Hz から 1100Hz の範囲で求めます。基本周波数の推定は Harvest と Dio から選べます。Dio を選んだときは StoneMask で補正します。伸ばす区間の扱いは、折り返して繰り返すループと、一様に引き伸ばすストレッチから選べます。
|
||||
|
||||
子音の長さはノートの子音速度で決まり、倍率は 2^((100-値)/100) です。フォルマントはスペクトル包絡を半音単位で周波数方向へ移し、高域の強調はナイキスト周波数における利得を dB で指定して周波数特性を傾け、息の量は非周期性指標を強めます。モジュレーションは原音の音程の揺れをどれだけ残すかを決めます。
|
||||
子音の長さはノートの子音速度で決まり、倍率は $2^{(100 - \text{値})/100}$ です。フォルマントはスペクトル包絡を半音単位で周波数方向へ移し、高域の強調はナイキスト周波数における利得を dB で指定して周波数特性を傾け、息の量は非周期性指標を強めます。モジュレーションは原音の音程の揺れをどれだけ残すかを決めます。
|
||||
|
||||
出力は 16 ビットのモノラル WAV です。ノートの母音から口パクに使う情報も作ります。
|
||||
|
||||
@@ -199,7 +200,7 @@ YukkuriMovieMaker4(YMM4)上で動作する、UTAU 音源から歌声を合
|
||||
| 基本 | 音程 | C4 | C1 〜 C7 | C-1 〜 G9 | 一覧からは C1 から C7 を選べます。ピアノロールで引くとそれ以外の音程にも動かせます。 |
|
||||
| 基本 | 長さ | 240tick | 15 〜 1920 | 15 〜 30720 | 480 ティックが四分音符です。テンポと話速から実際の長さが決まります。 |
|
||||
| 基本 | テンポ | 0BPM | 0 〜 400 | 0 〜 400 | 0 でこの譜面のテンポに従います。0 より大きい値はこのノートから先に効き、20 から 400 の範囲へ収めます。 |
|
||||
| 表現 | 子音速度 | 100 | 0 〜 200 | 0 〜 200 | 子音の長さの倍率です。100 が原音のままで、倍率は 2^((100-値)/100) になります。 |
|
||||
| 表現 | 子音速度 | 100 | 0 〜 200 | 0 〜 200 | 子音の長さの倍率です。100 が原音のままで、倍率は $2^{(100 - \text{値})/100}$ になります。 |
|
||||
| 表現 | 音量 | 100% | 0 〜 200 | 0 〜 200 | ノートごとの音量です。 |
|
||||
| 表現 | モジュレーション | 0% | -200 〜 200 | -200 〜 200 | 原音の音程の揺れをどれだけ残すかです。 |
|
||||
| 時間 | 先行発声 | 0ms | 0 〜 500 | 0 〜 5000 | 0 のときは原音設定の値を使います。 |
|
||||
@@ -269,6 +270,47 @@ YMM4 の設定画面の「音声」に「UTAU」として表示されます。
|
||||
|
||||
---
|
||||
|
||||
## 不具合の報告
|
||||
|
||||
本プラグインは、想定していない例外が起きたときに、その内容を開発者へ自動で送信します。同意は求めません。止める設定もありません。
|
||||
|
||||
送信する数には上限があります。YMM4 の 1 回の起動で送る報告は、YMM4-Telemetry で報告する別のプラグインと合わせて 20 件までです。例外の型と発生位置が同じ報告は 3 件までです。上限を超えた報告と、送信先から待つよう求められている間に起きた報告は、送信も退避もしません。
|
||||
|
||||
送信する情報は次のとおりです。
|
||||
|
||||
| 種類 | 内容 |
|
||||
|---|---|
|
||||
| 例外 | 型の完全名、メッセージ、スタックトレース |
|
||||
| 発生位置 | モジュール名、関数名、ファイル名、行番号、プラグイン自身のコードかどうか |
|
||||
| プラグイン | アセンブリ名、バージョン |
|
||||
| 実行環境 | OS の名前とバージョン、.NET のバージョン、CPU のアーキテクチャ、論理プロセッサ数 |
|
||||
| 識別子 | YMM4 の起動ごとに決まるセッション識別子、報告ごとの識別子 |
|
||||
| 時刻 | 報告を作った時刻(UTC) |
|
||||
|
||||
メッセージとファイル名は、送信の前に置き換えを通します。置き換えるのは、Windows のユーザー名、ユーザーフォルダー、AppData のパス、マシン名、ドメイン名、メールアドレス、IPv4 アドレスです。送信元の IP アドレスは受信側へ渡す手前で取り除いています。
|
||||
|
||||
音声ファイルの中身は送信しません。継続して個人を追跡する識別子も持ちません。セッション識別子は YMM4 を起動し直すと別の値になります。
|
||||
|
||||
置き換えの対象は上に挙げた文字列だけです。例外のメッセージにファイルのパスが含まれる場合、音源のフォルダーの名前と音声ファイルの名前はそのまま残ります。音声ファイルを読み込めなかった報告には、その音声ファイルのパスが含まれます。音源を利用者フォルダーの外へ置いている場合、パスは置き換えを受けずにそのまま残ります。
|
||||
|
||||
送信するのは想定していない例外だけです。本プラグインが例外を握り潰す箇所と、YMM4 へ処理を返す境界の両方で報告します。画面の操作やバックグラウンドの処理で未処理になった例外も報告しますが、本プラグインのコードが関わる例外に限ります。YMM4 本体やほかのプラグインで起きた例外は送信しません。
|
||||
|
||||
次の例外は送信しません。
|
||||
|
||||
| 種類 | 例 |
|
||||
|---|---|
|
||||
| 利用者へ知らせるための失敗 | エイリアスが見つからない、合成できるノートがない、セリフが空 |
|
||||
| 更新の確認の通信の失敗 | GitHub へ接続できない |
|
||||
| 探索と設定ファイルの読み取りで想定している失敗 | フォルダーを開く権限がない、文字コードを判別できない、パスが長すぎる |
|
||||
|
||||
音源の音声ファイルを読み込めなかった場合は送信します。読み込みの不具合を見つけるためです。
|
||||
|
||||
送信できなかった報告は YMM4 のユーザーフォルダーへ退避します。次に YMM4 を起動したあと、本プラグインを読み込むか、同じく YMM4-Telemetry で報告する別のプラグインが動き始めると、退避した報告を 1 回の起動で 10 件まで送り直します。送信も再送も非同期に行うため、起動と合成が遅くなることはありません。
|
||||
|
||||
実装は [YMM4-Telemetry](https://github.com/routersys/YMM4-Telemetry) をサブモジュールとして取り込んでいます。
|
||||
|
||||
---
|
||||
|
||||
## 免責事項
|
||||
|
||||
本プラグインは MIT ライセンスのもとで公開されています。
|
||||
@@ -287,6 +329,7 @@ YMM4 の設定画面の「音声」に「UTAU」として表示されます。
|
||||
| ソフトウェア | 用途 | ライセンス | 著作権表示 |
|
||||
|---|---|---|---|
|
||||
| [WorldNet](https://github.com/routersys/WorldNet) | 音声の分析と合成 | MIT License | Copyright (c) 2026 routersys |
|
||||
| [NAudio](https://github.com/naudio/NAudio) | 音声ファイルの読み書き | MIT License | Copyright (c) Mark Heath & Contributors |
|
||||
| [WORLD](https://github.com/mmorise/World) | WorldNet が移植した音声分析合成システム | 修正 BSD License | Copyright (c) 2010 M. Morise |
|
||||
| [Ooura FFT](https://www.kurims.kyoto-u.ac.jp/~ooura/fft.html) | WORLD が使う高速フーリエ変換 | 作者が定める条件 | Copyright Takuya OOURA, 1996-2001 |
|
||||
| [OpenUtau](https://github.com/stakira/OpenUtau) | 歌詞の区切り方の規約。試験には参照実装として原実装を転写しています | MIT License | Copyright (c) 2014 StAkira |
|
||||
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
# セキュリティポリシー
|
||||
|
||||
## サポートするバージョン
|
||||
|
||||
セキュリティの修正は、最新のリリースだけを対象にします。
|
||||
|
||||
| バージョン | サポート |
|
||||
|---|---|
|
||||
| 最新のリリース | 対象 |
|
||||
| それより前のリリース | 対象外 |
|
||||
|
||||
修正は、最新のリリースの次のバージョンとして公開します。報告する前に、最新のリリースでも問題が起きるかを確かめてください。
|
||||
|
||||
## 対象とする問題
|
||||
|
||||
本プラグインのコードと配布パッケージに原因がある問題を対象にします。たとえば次のようなものです。
|
||||
|
||||
- 細工したプロジェクトファイルや素材を開くと、意図しない処理が実行される
|
||||
- 更新の確認などで行う通信の内容を、第三者が書き換えられる
|
||||
- 不具合の情報を自動で送信するプラグインで、個人を特定できる情報が伏せられないまま送信される
|
||||
|
||||
配布パッケージに同梱したライブラリの脆弱性は、本プラグインを通じて悪用できる場合に対象にします。
|
||||
|
||||
YukkuriMovieMaker4 本体や、ほかのプラグインに原因がある問題は対象外です。それぞれの開発者へ報告してください。
|
||||
|
||||
## 報告の方法
|
||||
|
||||
脆弱性は、公開の Issue に書かないでください。修正を公開する前に悪用されるおそれがあります。
|
||||
|
||||
1. リポジトリの URL の末尾に `/security` を付けたページを開き、「Report a vulnerability」から非公開で報告してください。報告の内容を見られるのは、開発者と報告した人、開発者が招いた人だけです。
|
||||
2. この方法が使えないときは、github.routersys@gmail.com へメールで報告してください。
|
||||
|
||||
報告には、次の内容を書いてください。分からない項目は書かなくて構いません。
|
||||
|
||||
| 項目 | 内容 |
|
||||
|---|---|
|
||||
| バージョン | 問題を確かめたプラグインのバージョンと、YukkuriMovieMaker4 のバージョン |
|
||||
| 再現の手順 | 問題を起こす操作と、使ったプロジェクトファイルや素材 |
|
||||
| 影響 | 問題によって何ができてしまうか |
|
||||
| 回避策 | 分かっていれば、修正までの間に被害を避ける方法 |
|
||||
|
||||
## 報告の後
|
||||
|
||||
開発者は、報告を受け取ったら内容を確かめ、修正の見込みを返信します。
|
||||
|
||||
報告した人は、修正を含むバージョンが出るまで、報告の内容を明かさないでください。問題の詳細は、修正版の公開後に開発者が公表します。
|
||||
@@ -30,18 +30,9 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="NAudio">
|
||||
<HintPath>$(YMM4DirPath)NAudio.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="NAudio.Core">
|
||||
<HintPath>$(YMM4DirPath)NAudio.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json">
|
||||
<HintPath>$(YMM4DirPath)Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Numerics.Tensors">
|
||||
<HintPath>$(YMM4DirPath)System.Numerics.Tensors.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="YukkuriMovieMaker.Controls">
|
||||
<HintPath>$(YMM4DirPath)YukkuriMovieMaker.Controls.dll</HintPath>
|
||||
</Reference>
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<Solution>
|
||||
<Folder Name="/Solution Items/">
|
||||
<File Path=".editorconfig" />
|
||||
</Folder>
|
||||
<Project Path="UTAU/UTAU.csproj" />
|
||||
<Project Path="UTAU.Tests/UTAU.Tests.csproj" />
|
||||
<Project Path="YukkuriMovieMaker.Generator/YukkuriMovieMaker.Generator/YukkuriMovieMaker.Generator.csproj" />
|
||||
|
||||
@@ -669,6 +669,7 @@ internal sealed class UtauRenderer(RenderSettings settings, RenderCurves curves,
|
||||
}
|
||||
catch (Exception exception) when (exception is IOException or InvalidOperationException or FormatException or NotSupportedException or ArgumentException)
|
||||
{
|
||||
UTAUTelemetry.Report(exception);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -695,6 +696,7 @@ internal sealed class UtauRenderer(RenderSettings settings, RenderCurves curves,
|
||||
}
|
||||
catch (Exception exception) when (exception is IOException or InvalidOperationException or FormatException or NotSupportedException or ArgumentException)
|
||||
{
|
||||
UTAUTelemetry.Report(exception);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ internal static class WaveIo
|
||||
var frames = new List<double>(Math.Max((int)(reader.Length / Math.Max(reader.WaveFormat.BlockAlign, 1)), 0));
|
||||
|
||||
int read;
|
||||
while ((read = reader.Read(buffer)) > 0)
|
||||
while ((read = reader.Read(buffer, 0, buffer.Length)) > 0)
|
||||
{
|
||||
for (var i = 0; i + channels <= read; i += channels)
|
||||
{
|
||||
|
||||
+13
-16
@@ -5,14 +5,16 @@
|
||||
<UseWPF>true</UseWPF>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<Version>1.7.2</Version>
|
||||
<Version>1.7.5</Version>
|
||||
<Platforms>AnyCPU;x64;x64</Platforms>
|
||||
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
|
||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="WorldNet" Version="1.1.0" />
|
||||
<PackageReference Include="ILRepack" Version="2.0.46" PrivateAssets="all" ExcludeAssets="all" GeneratePathProperty="true" />
|
||||
<PackageReference Include="NAudio" Version="2.3.0" />
|
||||
<PackageReference Include="WorldNet" Version="1.2.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
@@ -22,18 +24,6 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="NAudio">
|
||||
<HintPath>$(YMM4DirPath)NAudio.dll</HintPath>
|
||||
<Private>false</Private>
|
||||
</Reference>
|
||||
<Reference Include="NAudio.Core">
|
||||
<HintPath>$(YMM4DirPath)NAudio.Core.dll</HintPath>
|
||||
<Private>false</Private>
|
||||
</Reference>
|
||||
<Reference Include="NAudio.Midi">
|
||||
<HintPath>$(YMM4DirPath)NAudio.Midi.dll</HintPath>
|
||||
<Private>false</Private>
|
||||
</Reference>
|
||||
<Reference Include="NCalc.Core">
|
||||
<HintPath>$(YMM4DirPath)NCalc.Core.dll</HintPath>
|
||||
<Private>false</Private>
|
||||
@@ -87,13 +77,20 @@
|
||||
<Compile Include="..\YMM4-GitHubUpdateNotifier\GitHubUpdateNotifier\*.cs" LinkBase="GitHubUpdateNotifier" />
|
||||
</ItemGroup>
|
||||
|
||||
<Import Project="..\YMM4-Telemetry\Telemetry.props" />
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\YukkuriMovieMaker.Generator\YukkuriMovieMaker.Generator\YukkuriMovieMaker.Generator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
|
||||
<AdditionalFiles Include="**/*.csv" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(SkipPluginDeploy)' != 'true'">
|
||||
<Exec Command="mkdir "$(YMM4DirPath)user\plugin\$(ProjectName)" > NUL 2>&1
copy "$(TargetPath)" "$(YMM4DirPath)user\plugin\$(ProjectName)\"
copy "$(TargetDir)WorldNet.dll" "$(YMM4DirPath)user\plugin\$(ProjectName)\"" />
|
||||
<Target Name="MergePluginAssembly" AfterTargets="PostBuildEvent" Inputs="$(TargetPath);$(TargetDir)NAudio.dll;$(TargetDir)NAudio.Core.dll;$(TargetDir)NAudio.Asio.dll;$(TargetDir)NAudio.Midi.dll;$(TargetDir)NAudio.Wasapi.dll;$(TargetDir)NAudio.WinMM.dll" Outputs="$(TargetDir)plugin\$(TargetFileName)">
|
||||
<MakeDir Directories="$(TargetDir)plugin" />
|
||||
<Exec Command=""$(PkgILRepack)\tools\ILRepack.exe" /out:"$(TargetDir)plugin\$(TargetFileName)" /lib:"$([System.IO.Path]::GetDirectoryName('$(TargetPath)'))" /lib:"$([System.IO.Path]::GetDirectoryName('$(YMM4DirPath)'))" /internalize "$(TargetPath)" "$(TargetDir)NAudio.dll" "$(TargetDir)NAudio.Core.dll" "$(TargetDir)NAudio.Asio.dll" "$(TargetDir)NAudio.Midi.dll" "$(TargetDir)NAudio.Wasapi.dll" "$(TargetDir)NAudio.WinMM.dll"" />
|
||||
</Target>
|
||||
|
||||
<Target Name="PostBuild" AfterTargets="MergePluginAssembly" Condition="'$(SkipPluginDeploy)' != 'true'">
|
||||
<Exec Command="mkdir "$(YMM4DirPath)user\plugin\$(ProjectName)" > NUL 2>&1
copy "$(TargetDir)plugin\$(TargetFileName)" "$(YMM4DirPath)user\plugin\$(ProjectName)\"
copy "$(TargetDir)WorldNet.dll" "$(YMM4DirPath)user\plugin\$(ProjectName)\"" />
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,100 @@
|
||||
using System.Diagnostics;
|
||||
using System.Reflection;
|
||||
using System.Windows;
|
||||
using System.Windows.Threading;
|
||||
using Telemetry;
|
||||
|
||||
namespace UTAU;
|
||||
|
||||
internal static class UTAUTelemetry
|
||||
{
|
||||
private const int MaxChainLength = 5;
|
||||
private const int MaxFrames = 100;
|
||||
|
||||
private static readonly Assembly Own = typeof(UTAUTelemetry).Assembly;
|
||||
private static int _started;
|
||||
|
||||
public static void EnsureStartedOnce()
|
||||
{
|
||||
if (Interlocked.Exchange(ref _started, 1) != 0)
|
||||
return;
|
||||
|
||||
AppDomain.CurrentDomain.UnhandledException += OnUnhandledException;
|
||||
TaskScheduler.UnobservedTaskException += OnUnobservedTaskException;
|
||||
|
||||
var application = Application.Current;
|
||||
if (application is not null)
|
||||
application.DispatcherUnhandledException += OnDispatcherUnhandledException;
|
||||
|
||||
TelemetryReporter.Start();
|
||||
}
|
||||
|
||||
public static void Report(Exception exception) => TelemetryReporter.Report(exception);
|
||||
|
||||
private static void OnUnhandledException(object sender, UnhandledExceptionEventArgs e)
|
||||
=> ReportOwn(e.ExceptionObject as Exception);
|
||||
|
||||
private static void OnUnobservedTaskException(object? sender, UnobservedTaskExceptionEventArgs e)
|
||||
=> ReportOwn(e.Exception);
|
||||
|
||||
private static void OnDispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
|
||||
=> ReportOwn(e.Exception);
|
||||
|
||||
private static void ReportOwn(Exception? exception)
|
||||
{
|
||||
if (exception is not null && IsOwn(exception))
|
||||
TelemetryReporter.Report(exception);
|
||||
}
|
||||
|
||||
private static bool IsOwn(Exception exception)
|
||||
{
|
||||
var current = exception;
|
||||
for (var depth = 0; current is not null && depth < MaxChainLength; depth++)
|
||||
{
|
||||
if (HasOwnFrame(current))
|
||||
return true;
|
||||
|
||||
current = current is AggregateException aggregate && aggregate.InnerExceptions.Count > 0
|
||||
? aggregate.InnerExceptions[0]
|
||||
: current.InnerException;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
private static bool HasOwnFrame(Exception exception)
|
||||
{
|
||||
StackFrame[]? frames;
|
||||
|
||||
try
|
||||
{
|
||||
frames = new StackTrace(exception, false).GetFrames();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (frames is null)
|
||||
return false;
|
||||
|
||||
for (var index = 0; index < Math.Min(frames.Length, MaxFrames); index++)
|
||||
{
|
||||
MethodBase? method;
|
||||
|
||||
try
|
||||
{
|
||||
method = frames[index].GetMethod();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (method?.DeclaringType is { } declaringType && ReferenceEquals(declaringType.Assembly, Own))
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -31,8 +31,10 @@ internal static class UTAUUpdateNotifier
|
||||
};
|
||||
await new Notifier(Owner, Repository, options).NotifyAsync().ConfigureAwait(false);
|
||||
}
|
||||
catch
|
||||
catch (Exception exception)
|
||||
{
|
||||
if (exception is not UpdateCheckException)
|
||||
UTAUTelemetry.Report(exception);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+16
-2
@@ -18,16 +18,30 @@ internal sealed class UTAUVoicePlugin : IVoicePlugin
|
||||
|
||||
public bool IsVoicesCached => VoiceBankRepository.IsLoaded;
|
||||
|
||||
public Task UpdateVoicesAsync() => Task.Run(VoiceBankRepository.Reload);
|
||||
public Task UpdateVoicesAsync() => Task.Run(Reload);
|
||||
|
||||
static IEnumerable<IVoiceSpeaker> GetVoices()
|
||||
{
|
||||
UTAUTelemetry.EnsureStartedOnce();
|
||||
UTAUUpdateNotifier.EnsureCheckedOnce();
|
||||
|
||||
if (!VoiceBankRepository.IsLoaded)
|
||||
VoiceBankRepository.Reload();
|
||||
Reload();
|
||||
|
||||
foreach (var bank in VoiceBankRepository.Banks)
|
||||
yield return new UTAUVoiceSpeaker(bank);
|
||||
}
|
||||
|
||||
static void Reload()
|
||||
{
|
||||
try
|
||||
{
|
||||
VoiceBankRepository.Reload();
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
UTAUTelemetry.Report(exception);
|
||||
throw;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -48,6 +48,19 @@ internal sealed class UTAUVoiceSpeaker(VoiceBank bank) : IVoiceSpeaker
|
||||
=> currentParameter is UTAUVoiceParameter ? currentParameter : CreateVoiceParameter();
|
||||
|
||||
public async Task<IVoicePronounce?> CreateVoiceAsync(string text, IVoicePronounce? pronounce, IVoiceParameter? parameter, string filePath)
|
||||
{
|
||||
try
|
||||
{
|
||||
return await CreateAsync(text, pronounce, parameter, filePath).ConfigureAwait(false);
|
||||
}
|
||||
catch (Exception exception) when (exception is not InvalidOperationException)
|
||||
{
|
||||
UTAUTelemetry.Report(exception);
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
async Task<IVoicePronounce?> CreateAsync(string text, IVoicePronounce? pronounce, IVoiceParameter? parameter, string filePath)
|
||||
{
|
||||
var param = parameter as UTAUVoiceParameter ?? new UTAUVoiceParameter();
|
||||
var isUst = UstSource.TryGetPath(text, out var ustPath);
|
||||
|
||||
@@ -78,6 +78,7 @@ internal sealed class UTAUSettingsViewModel : Bindable
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
UTAUTelemetry.Report(exception);
|
||||
StatusText = exception.Message;
|
||||
}
|
||||
finally
|
||||
@@ -138,6 +139,7 @@ internal sealed class UTAUSettingsViewModel : Bindable
|
||||
}
|
||||
catch (Exception exception) when (exception is IOException or UnauthorizedAccessException or System.ComponentModel.Win32Exception)
|
||||
{
|
||||
UTAUTelemetry.Report(exception);
|
||||
StatusText = exception.Message;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,6 +94,7 @@ internal sealed class VoiceBankViewModel(VoiceBank bank)
|
||||
}
|
||||
catch (Exception exception) when (exception is NotSupportedException or IOException or UriFormatException or ArgumentException)
|
||||
{
|
||||
UTAUTelemetry.Report(exception);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
サブモジュール
+1
サブモジュール YMM4-Telemetry が 04010903ca で追加されました。
新しいイシューから参照
ユーザーをブロックする