Files
suno-helper/run_process_suno_library.ps1
T
2026-05-01 23:43:08 +09:00

32 lines
1.0 KiB
PowerShell

$ErrorActionPreference = "Stop"
$pwsh = Join-Path $env:ProgramFiles "PowerShell\7\pwsh.exe"
if (($PSVersionTable.PSVersion.Major -lt 7) -and (Test-Path -LiteralPath $pwsh)) {
& $pwsh -NoProfile -ExecutionPolicy Bypass -File $PSCommandPath
exit $LASTEXITCODE
}
$manifest = Join-Path $env:USERPROFILE "Downloads\suno-library-*.manifest.json"
$latest = Get-ChildItem -Path $manifest -File -ErrorAction SilentlyContinue |
Sort-Object LastWriteTime -Descending |
Select-Object -First 1
if (-not $latest) {
Write-Host "No suno-library-*.manifest.json found in Downloads."
Write-Host "Use the Tampermonkey panel first."
Read-Host "Press Enter to close"
exit 1
}
$music = -join ([char[]](0xc74c, 0xc545))
$processed = -join ([char[]](0xcc98, 0xb9ac, 0xb428))
$outputRoot = "\\VaultOfData\AKAMedia\$music\$processed"
& "$PSScriptRoot\process-suno-library.ps1" `
-ManifestPath $latest.FullName `
-OutputRoot $outputRoot `
-ArtistName "SUNO"
Write-Host ""
Read-Host "Press Enter to close"