diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 485abfe..2f68cfe 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -28,15 +28,12 @@ jobs:
- name: Set up .NET
uses: actions/setup-dotnet@v6
with:
- dotnet-version: |
- 8.0.x
- 9.0.x
- 10.0.x
+ dotnet-version: 11.0.x
- name: Restore
run: dotnet restore CSharp_RVZSharp.sln
- name: Build
run: dotnet build CSharp_RVZSharp.sln -c Release --no-restore
- - name: Fast tests (library net8.0 + net9.0 + net10.0, CLI net10.0) with coverage
+ - name: Fast tests (library + CLI, net8.0 + net9.0 + net10.0 + net11.0) with coverage
run: >
dotnet test CSharp_RVZSharp.sln -c Release --no-build
--collect:"XPlat Code Coverage"
@@ -62,15 +59,15 @@ jobs:
- name: Set up .NET
uses: actions/setup-dotnet@v6
with:
- dotnet-version: 10.0.x
+ dotnet-version: 11.0.x
- name: Restore
run: dotnet restore CSharp_RVZSharp.sln
- name: Build
run: dotnet build CSharp_RVZSharp.sln -c Release --no-restore
# The full matrix runs on Ubuntu above; this job proves the library and CLI also
# build and pass on the other two supported desktop operating systems.
- - name: Tests (net10.0)
- run: dotnet test CSharp_RVZSharp.sln -c Release --no-build --framework net10.0
+ - name: Tests (net11.0)
+ run: dotnet test CSharp_RVZSharp.sln -c Release --no-build --framework net11.0
docs:
name: Build DocFX API reference
@@ -80,7 +77,7 @@ jobs:
- uses: actions/checkout@v7
- uses: actions/setup-dotnet@v6
with:
- dotnet-version: 10.0.x
+ dotnet-version: 11.0.x
- name: Restore tools
run: dotnet tool restore
- name: Build API reference
@@ -93,7 +90,7 @@ jobs:
if-no-files-found: error
pack:
- name: Pack + API validation + SBOM
+ name: Pack packages + API validation + SBOM
runs-on: ubuntu-latest
timeout-minutes: 20
needs: test
@@ -101,11 +98,20 @@ jobs:
- uses: actions/checkout@v7
- uses: actions/setup-dotnet@v6
with:
- dotnet-version: 10.0.x
+ dotnet-version: 11.0.x
# Runs EnablePackageValidation (baseline 1.0.0) and generates the SPDX SBOM
- # that is embedded in the nupkg (Microsoft.Sbom.Targets, Release only).
+ # that is embedded in the library nupkg (Microsoft.Sbom.Targets, Release only).
+ # The CLI is a separate .NET tool package.
- name: Pack
- run: dotnet pack RVZSharp/RVZSharp.csproj -c Release -o artifacts/packages
+ run: |
+ dotnet pack RVZSharp/RVZSharp.csproj -c Release -o artifacts/packages
+ dotnet pack RVZSharp.Cli/RVZSharp.Cli.csproj -c Release -o artifacts/packages
+ - name: Smoke-test CLI tool package
+ run: |
+ printf '' > artifacts/nuget.config
+ dotnet nuget add source "$PWD/artifacts/packages" --name local --configfile "$PWD/artifacts/nuget.config"
+ dotnet tool install --tool-path artifacts/tool --configfile "$PWD/artifacts/nuget.config" RVZSharp.Cli
+ artifacts/tool/rvzsharp --help
- name: Upload packages
uses: actions/upload-artifact@v7
with:
@@ -121,13 +127,13 @@ jobs:
- uses: actions/checkout@v7
- uses: actions/setup-dotnet@v6
with:
- dotnet-version: 10.0.x
+ dotnet-version: 11.0.x
# Validates the exact publish shape release.yml ships: framework-dependent
- # single-file (no runtime embedded; the runner's .NET 10 runtime runs the smoke
+ # single-file (no runtime embedded; the runner's .NET 11 runtime runs the smoke
# test). Catching a regression here keeps the release path from rotting.
- name: Publish
run: >
- dotnet publish RVZSharp.Cli/RVZSharp.Cli.csproj -c Release -f net10.0
+ dotnet publish RVZSharp.Cli/RVZSharp.Cli.csproj -c Release -f net11.0
-r win-x64 --self-contained false
-p:PublishSingleFile=true
-o artifacts/rvzsharp-win-x64
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index 6e77422..80e7a65 100644
--- a/.github/workflows/codeql.yml
+++ b/.github/workflows/codeql.yml
@@ -30,10 +30,7 @@ jobs:
- uses: actions/setup-dotnet@v6
with:
- dotnet-version: |
- 8.0.x
- 9.0.x
- 10.0.x
+ dotnet-version: 11.0.x
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml
index 9e03549..2b73dfe 100644
--- a/.github/workflows/pages.yml
+++ b/.github/workflows/pages.yml
@@ -24,7 +24,7 @@ jobs:
- name: Set up .NET
uses: actions/setup-dotnet@v6
with:
- dotnet-version: 10.0.x
+ dotnet-version: 11.0.x
# Generate the public API reference from the library XML comments and publish it
# under /api/. Jekyll copies the generated static site as part of docs/.
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index bf4d119..a845835 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -2,23 +2,29 @@ name: Release
# Builds the release bundles and publishes them on GitHub.
#
-# Push a tag `v` (e.g. `v1.1.0`, `v1.2.0-beta.1`; valid SemVer after the
+# Push a tag `v` (e.g. `v1.2.0`, `v1.3.0-beta.1`; valid SemVer after the
# leading `v`, no `+build` metadata) to:
# 1. publish the framework-dependent single-file CLI for win-x64, win-arm64,
-# linux-x64, linux-arm64, osx-x64 and osx-arm64 (the .NET 10 runtime is NOT
-# embedded: target machines install the .NET 10 Runtime), smoke-test each
-# binary on a native runner, and zip it with LICENSE, THIRD-PARTY-NOTICES.md,
-# README.md and WhatsNew.md -> rvzsharp_v_.zip (the naming the
+# linux-x64, linux-arm64, osx-x64 and osx-arm64 (the .NET 11 runtime is NOT
+# embedded: target machines install the .NET 11 Runtime), smoke-test each
+# binary on a native runner, and package it with LICENSE, THIRD-PARTY-NOTICES.md,
+# README.md and WhatsNew.md -> rvzsharp_v_.zip on Windows and
+# macOS Intel, .tar.gz on Linux and .dmg on Apple Silicon (the naming the
# update-check clients expect)
-# 2. pack the RVZSharp NuGet package (embedded PDBs, so no symbols package)
-# 3. create the GitHub Release with the zips, SHA256SUMS.txt and the packages;
-# the release notes come from docs/release-notes-.md when present
-# 4. push the package to nuget.org for stable versions (needs the NUGET_API_KEY
+# 2. pack the RVZSharp library and RVZSharp.Cli .NET tool NuGet packages
+# (embedded PDBs, so no symbols package)
+# 3. create the GitHub Release with the archives, SHA256SUMS.txt, the packages and
+# the generated WinGet manifest bundle; the release notes come from
+# docs/release-notes-.md when present
+# 4. push both packages to nuget.org for stable versions (needs the NUGET_API_KEY
# repository secret from nuget.org -> API Keys)
+# 5. submit the WinGet manifests to microsoft/winget-pkgs for stable versions
+# (needs the WINGET_TOKEN repository secret; manifests are still attached to
+# the release without it)
#
# Run it manually (workflow_dispatch) for a dry run: everything above runs except
-# the GitHub Release creation and the nuget.org push, and the artifacts stay
-# available on the workflow run for inspection.
+# the GitHub Release creation, the nuget.org push and the WinGet submission, and the
+# artifacts stay available on the workflow run for inspection.
on:
push:
@@ -26,7 +32,7 @@ on:
workflow_dispatch:
inputs:
version:
- description: 'Version to build (e.g. 1.1.0 or 1.2.0-beta.1). Dry run only: no GitHub Release, no nuget.org push.'
+ description: 'Version to build (e.g. 1.2.0 or 1.3.0-beta.1). Dry run only: no GitHub Release, no nuget.org push.'
required: true
permissions:
@@ -80,69 +86,91 @@ jobs:
- rid: win-x64
os: windows-latest
exe: RVZSharp.exe
+ archive: zip
- rid: win-arm64
os: windows-11-arm
exe: RVZSharp.exe
+ archive: zip
- rid: linux-x64
os: ubuntu-latest
exe: RVZSharp
+ archive: tar.gz
- rid: linux-arm64
os: ubuntu-24.04-arm
exe: RVZSharp
+ archive: tar.gz
- rid: osx-x64
os: macos-15-intel
exe: RVZSharp
+ archive: zip
- rid: osx-arm64
os: macos-latest
exe: RVZSharp
+ archive: dmg
runs-on: ${{ matrix.os }}
timeout-minutes: 30
env:
VERSION: ${{ needs.version.outputs.version }}
RID: ${{ matrix.rid }}
+ ARCHIVE: ${{ matrix.archive }}
steps:
- uses: actions/checkout@v7
- uses: actions/setup-dotnet@v6
with:
- dotnet-version: 10.0.x
+ dotnet-version: 11.0.x
# Framework-dependent single-file CLI: one binary per runtime, no .NET runtime
- # embedded. Target machines install the .NET 10 Runtime; each bundle is smoke
+ # embedded. Target machines install the .NET 11 Runtime; each bundle is smoke
# tested on a native runner so a broken apphost cannot ship.
- name: Publish
run: >
- dotnet publish RVZSharp.Cli/RVZSharp.Cli.csproj -c Release -f net10.0
+ dotnet publish RVZSharp.Cli/RVZSharp.Cli.csproj -c Release -f net11.0
-r ${{ matrix.rid }} --self-contained false
-p:Version=${{ needs.version.outputs.version }}
-p:PublishSingleFile=true
-o artifacts/publish/${{ matrix.rid }}
- name: Smoke test
run: ./artifacts/publish/${{ matrix.rid }}/${{ matrix.exe }} --help
- - name: Bundle zip
+ - name: Bundle archive
shell: pwsh
run: |
$bundle = "artifacts/bundle/rvzsharp_v$($env:VERSION)_$($env:RID)"
New-Item -ItemType Directory -Path $bundle -Force | Out-Null
Copy-Item "artifacts/publish/$env:RID/*" $bundle
Copy-Item LICENSE, THIRD-PARTY-NOTICES.md, README.md, WhatsNew.md $bundle
- if ($IsWindows) {
- Compress-Archive -Path "$bundle/*" -DestinationPath "$bundle.zip" -CompressionLevel Optimal
- } else {
- # zip(1) keeps the executable bit that Compress-Archive drops on Unix.
- Push-Location $bundle
- & zip -r -q "../rvzsharp_v$($env:VERSION)_$($env:RID).zip" .
- Pop-Location
+ $archive = Join-Path $PWD.Path "artifacts/bundle/rvzsharp_v$($env:VERSION)_$($env:RID).$($env:ARCHIVE)"
+ switch ($env:ARCHIVE) {
+ 'zip' {
+ if ($IsWindows) {
+ Compress-Archive -Path "$bundle/*" -DestinationPath $archive -CompressionLevel Optimal
+ } else {
+ # zip(1) keeps the executable bit that Compress-Archive drops on Unix.
+ Push-Location $bundle
+ & zip -r -q $archive .
+ Pop-Location
+ }
+ }
+ 'tar.gz' {
+ # tar preserves the executable bit and Unix file metadata.
+ & tar -czf $archive -C $bundle .
+ }
+ 'dmg' {
+ hdiutil create -volname "RVZSharp $env:VERSION" -srcfolder $bundle -ov -format UDZO $archive
+ }
+ default {
+ throw "Unknown archive format: $env:ARCHIVE"
+ }
}
- Get-Item "$bundle.zip"
+ Get-Item $archive
- name: Upload bundle
uses: actions/upload-artifact@v7
with:
name: rvzsharp-${{ needs.version.outputs.version }}-${{ matrix.rid }}
- path: artifacts/bundle/rvzsharp_v${{ needs.version.outputs.version }}_${{ matrix.rid }}.zip
+ path: artifacts/bundle/rvzsharp_v${{ needs.version.outputs.version }}_${{ matrix.rid }}.${{ matrix.archive }}
if-no-files-found: error
retention-days: 30
package:
- name: Pack NuGet
+ name: Pack NuGet packages
needs: version
runs-on: ubuntu-latest
timeout-minutes: 20
@@ -150,15 +178,14 @@ jobs:
- uses: actions/checkout@v7
- uses: actions/setup-dotnet@v6
with:
- dotnet-version: 10.0.x
- # Runs EnablePackageValidation (baseline: last published release) and embeds the
- # SPDX SBOM (Microsoft.Sbom.Targets, Release only).
+ dotnet-version: 11.0.x
+ # Runs EnablePackageValidation (baseline: last published release), embeds the
+ # SPDX SBOM in the library package (Microsoft.Sbom.Targets, Release only) and
+ # builds the CLI .NET tool package.
- name: Pack
- run: >
- dotnet pack RVZSharp/RVZSharp.csproj -c Release
- -p:Version=${{ needs.version.outputs.version }}
- -p:ContinuousIntegrationBuild=true
- -o artifacts/packages
+ run: |
+ dotnet pack RVZSharp/RVZSharp.csproj -c Release -p:Version=${{ needs.version.outputs.version }} -p:ContinuousIntegrationBuild=true -o artifacts/packages
+ dotnet pack RVZSharp.Cli/RVZSharp.Cli.csproj -c Release -p:Version=${{ needs.version.outputs.version }} -p:ContinuousIntegrationBuild=true -o artifacts/packages
- name: Upload packages
uses: actions/upload-artifact@v7
with:
@@ -196,7 +223,8 @@ jobs:
VERSION: ${{ needs.version.outputs.version }}
run: |
Set-Location artifacts/release
- Get-ChildItem *.zip | ForEach-Object {
+ Remove-Item SHA256SUMS.txt -ErrorAction SilentlyContinue
+ Get-ChildItem -File | Where-Object { $_.Name -match '\.(zip|tar\.gz|dmg)$' } | ForEach-Object {
$hash = (Get-FileHash $_.FullName -Algorithm SHA256).Hash.ToLower()
"$hash $($_.Name)" >> SHA256SUMS.txt
}
@@ -220,9 +248,65 @@ jobs:
fail_on_unmatched_files: true
files: |
artifacts/release/*.zip
+ artifacts/release/*.tar.gz
+ artifacts/release/*.dmg
artifacts/release/SHA256SUMS.txt
artifacts/release/*.nupkg
+ winget:
+ name: Submit WinGet manifest
+ needs: [version, release]
+ if: github.ref_type == 'tag' && needs.version.outputs.prerelease == 'false'
+ runs-on: windows-latest
+ timeout-minutes: 30
+ permissions:
+ contents: write
+ env:
+ VERSION: ${{ needs.version.outputs.version }}
+ RELEASE_TAG: ${{ needs.version.outputs.tag }}
+ WINGETCREATE_VERSION: 1.28.1.0
+ steps:
+ - uses: actions/checkout@v7
+ with:
+ ref: ${{ needs.version.outputs.tag }}
+ - name: Download Windows bundles
+ uses: actions/download-artifact@v8
+ with:
+ pattern: rvzsharp-${{ needs.version.outputs.version }}-win-*
+ path: artifacts/winget
+ merge-multiple: true
+ - name: Generate WinGet manifests
+ shell: pwsh
+ run: >
+ ./scripts/Generate-WingetManifests.ps1
+ -Version $env:VERSION
+ -ReleaseTag $env:RELEASE_TAG
+ -InputDirectory artifacts/winget
+ -OutputDirectory artifacts/winget-manifests
+ - name: Attach manifests to release
+ shell: pwsh
+ env:
+ GH_TOKEN: ${{ github.token }}
+ run: |
+ Compress-Archive -Path artifacts/winget-manifests/* -DestinationPath "artifacts/rvzsharp_v$($env:VERSION)_winget.zip" -Force
+ gh release upload $env:RELEASE_TAG "artifacts/rvzsharp_v$($env:VERSION)_winget.zip" --clobber
+ - name: Download WinGetCreate
+ shell: pwsh
+ run: >
+ Invoke-WebRequest
+ -Uri "https://github.com/microsoft/winget-create/releases/download/v$env:WINGETCREATE_VERSION/wingetcreate.exe"
+ -OutFile wingetcreate.exe
+ - name: Submit to winget-pkgs (skipped without WINGET_TOKEN)
+ shell: pwsh
+ env:
+ WINGET_TOKEN: ${{ secrets.WINGET_TOKEN }}
+ run: |
+ if ([string]::IsNullOrWhiteSpace($env:WINGET_TOKEN)) {
+ Write-Warning 'WINGET_TOKEN is not set; manifests were attached to the release for manual submission.'
+ exit 0
+ }
+ ./wingetcreate.exe submit --prtitle "Update PureLogicCode.RVZSharp to $env:VERSION" --token $env:WINGET_TOKEN --no-open artifacts/winget-manifests
+
nuget:
name: Push to nuget.org
needs: [version, package, release]
@@ -232,7 +316,7 @@ jobs:
steps:
- uses: actions/setup-dotnet@v6
with:
- dotnet-version: 10.0.x
+ dotnet-version: 11.0.x
- name: Download packages
uses: actions/download-artifact@v8
with:
diff --git a/AGENTS.md b/AGENTS.md
index ebf693c..ecd4875 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -25,6 +25,7 @@ RVZSharp is a pure managed .NET library and command-line tool for GameCube/Wii d
| `RVZSharp.Cli.Tests/` | CLI parser, update-check and logging tests. |
| `RVZSharp.Slow.Tests/` | Real-file and differential tests against `DolphinTool.exe`. |
| `RVZSharp.Benchmarks/` | BenchmarkDotNet suites. |
+| `scripts/` | WinGet manifest generator used by the release workflow. |
| `docs/` | Jekyll site, GitHub Wiki source and user documentation. |
| `docfx/` | API reference configuration (DocFX) published under `/api/`. |
| `.github/workflows/` | CI, CodeQL, dependency review, Pages, Wiki and Release automation. |
@@ -32,8 +33,9 @@ RVZSharp is a pure managed .NET library and command-line tool for GameCube/Wii d
## Prerequisites
-- .NET SDK **10.0** (see `global.json`; it rolls forward to the latest major).
-- The library targets `net8.0`, `net9.0` and `net10.0`; tests run on all three.
+- .NET SDK **11.0** (see `global.json`; it rolls forward to the latest major).
+- The library, CLI and tests target `net8.0`, `net9.0`, `net10.0` and `net11.0` with
+ C# 15; the benchmarks target `net11.0`.
- Windows, Linux or macOS. The CLI ships framework-dependent single-file builds for
`win-x64`, `win-arm64`, `linux-x64`, `linux-arm64`, `osx-x64` and `osx-arm64`.
- Optional for slow tests: `DolphinTool.exe` at the repository root.
@@ -155,8 +157,11 @@ live in `RVZSharp.Cli` and use Serilog exclusively:
`RVZSharp/RVZSharp.csproj`, and update `WhatsNew.md`.
2. Add `docs/release-notes-.md`.
3. Push a `v` tag. `.github/workflows/release.yml` builds all RIDs, runs the
- smoke tests, packs the NuGet package, creates the GitHub Release with checksums and
- pushes stable versions to nuget.org when `NUGET_API_KEY` is configured.
+ smoke tests, packages Windows/macOS Intel bundles as `.zip`, Linux as `.tar.gz` and
+ Apple Silicon as `.dmg`, packs both NuGet packages (`RVZSharp` and the `RVZSharp.Cli`
+ .NET tool), creates the GitHub Release with checksums and the WinGet manifest bundle,
+ pushes stable versions to nuget.org when `NUGET_API_KEY` is configured, and submits
+ the WinGet manifest when `WINGET_TOKEN` is configured.
4. Dry-run with `workflow_dispatch` and a version input; no release is created.
## Linux VM validation
@@ -166,7 +171,7 @@ machine-specific IP addresses or credentials. Use environment variables or a loc
git-ignored file (for example `AGENTS.local.md`) for host details, then:
```powershell
-dotnet publish RVZSharp.Cli/RVZSharp.Cli.csproj -c Release -f net10.0 -r linux-x64 --self-contained false -p:PublishSingleFile=true -o artifacts/linux-x64
+dotnet publish RVZSharp.Cli/RVZSharp.Cli.csproj -c Release -f net11.0 -r linux-x64 --self-contained false -p:PublishSingleFile=true -o artifacts/linux-x64
# copy artifacts/linux-x64/RVZSharp to the VM and run:
./RVZSharp --help
./RVZSharp header -i /path/to/sample.rvz
diff --git a/Directory.Build.props b/Directory.Build.props
index d4637bf..1366274 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -1,8 +1,8 @@
- net8.0;net9.0;net10.0
- latest
+ net8.0;net9.0;net10.0;net11.0
+ 15.0
enable
enable
true
@@ -11,7 +11,7 @@
embedded
true
- 1.2.0
+ 1.3.0
Peterson Fernandes; Pure Logic Code
RVZSharp
diff --git a/README.md b/README.md
index 0272f25..462cb01 100644
--- a/README.md
+++ b/README.md
@@ -2,9 +2,10 @@
[](https://github.com/purelogiccode/RVZSharp/actions/workflows/codeql.yml)
[](https://purelogiccode.github.io/RVZSharp/)
[](https://purelogiccode.github.io/RVZSharp/api/)
-[](https://dotnet.microsoft.com/)
+[](https://dotnet.microsoft.com/)
[](https://www.nuget.org/packages/RVZSharp/)
[](https://www.nuget.org/packages/RVZSharp/)
+[](https://www.nuget.org/packages/RVZSharp.Cli/)
[](https://github.com/purelogiccode/RVZSharp/releases)
[](https://github.com/purelogiccode/RVZSharp/blob/master/LICENSE)
[](https://github.com/purelogiccode/RVZSharp/blob/master/docs/testing.md)
@@ -20,13 +21,16 @@
# RVZSharp
-A pure managed C# library and CLI (**.NET 8 / 9 / 10**) for decoding and encoding **Dolphin
+A pure managed C# library and CLI (**.NET 8 / 9 / 10 / 11**, C# 15) for decoding and encoding **Dolphin
RVZ/WIA** disc images (GameCube/Wii), encoding the legacy **GCZ** format, and decoding the
remaining legacy formats (CISO/WBI, WBFS, TGC, NFS). RVZSharp decodes RVZ/WIA files back to
the original disc image (`.iso`) **byte-for-byte**, including:
+> **Companion GUI:** [RVZStudio](https://github.com/purelogiccode/RVZStudio) is the desktop
+> GUI for RVZSharp, maintained alongside this repository.
+
```
-dotnet add package RVZSharp
+dotnet add package RVZSharp --version 1.3.0
```
- all six compression methods: NONE, PURGE (WIA), BZIP2, LZMA, LZMA2, Zstandard (100% managed
@@ -227,6 +231,14 @@ container magic).
### CLI
+Install it as a .NET tool (or `winget install PureLogicCode.RVZSharp` on Windows):
+
+```bash
+dotnet tool install -g RVZSharp.Cli --version 1.3.0
+```
+
+Or run the project from source:
+
```
dotnet run --project RVZSharp.Cli -- header -i
dotnet run --project RVZSharp.Cli -- verify -i [-a crc32|md5|sha1] [--partitions] [--json]
@@ -286,22 +298,22 @@ highlights are summarized in [WhatsNew.md](https://github.com/purelogiccode/RVZS
XML documentation (shipped in the package as `RVZSharp.xml` for IntelliSense).
- `RVZSharp.Cli` — the `header`/`verify`/`convert`/`extract` tool (DolphinTool-compatible
surface, plus the legacy `info`/`decode` commands, `--json` output, `-` stdin/stdout and
- shell completions).
-- `RVZSharp.Tests` — 613 synthetic tests (net8.0 + net9.0 + net10.0): unit (headers,
+ shell completions); published as the `RVZSharp.Cli` .NET tool package.
+- `RVZSharp.Tests` — 613 synthetic tests (net8.0 + net9.0 + net10.0 + net11.0): unit (headers,
tables, codecs, PRNG, packing, exceptions, region rebuild, metadata/offset edge cases,
low-level IO helpers) and end-to-end round-trips of synthetic RVZ files built by
`TestRvzBuilder`, plus writer round trips (every codec × packing, GC + Wii, legacy → RVZ,
split WBFS, scrubbing), GCZ writer tests, parallel write/decode determinism tests,
FST/file-system validation tests, async API tests, package-facing API tests (path open,
ReadFully, progress, cancellation).
-- `RVZSharp.Cli.Tests` — 97 tests (net10.0) for the CLI's option parser, extract path guards,
+- `RVZSharp.Cli.Tests` — 106 tests (net8.0 + net9.0 + net10.0 + net11.0) for the CLI's option parser, extract path guards,
shell-completion scripts, update checker, ApplicationStats telemetry and the Serilog
bug-report sink/layout.
- `RVZSharp.Slow.Tests` — 276 real-file tests (`RealRvzFileTests`) that decode 90 real
GameCube/Wii RVZ images byte-for-byte against their official No-Intro DAT SHA-1s.
Kept out of the solution, so a plain `dotnet test` never runs them (~30 min); run
explicitly with `dotnet test RVZSharp.Slow.Tests` (details in [docs/testing.md](https://github.com/purelogiccode/RVZSharp/blob/master/docs/testing.md)).
-- `RVZSharp.Benchmarks` — BenchmarkDotNet suite (net10.0): encode/decode throughput per
+- `RVZSharp.Benchmarks` — BenchmarkDotNet suite (net11.0): encode/decode throughput per
codec and writer thread scaling, on a synthetic 16 MiB GameCube image
(`dotnet run -c Release --project RVZSharp.Benchmarks`).
@@ -348,11 +360,13 @@ instead of the RVZ partition-table key (No-Intro dumps carry re-signed tickets w
differs), producing files the reader rejected. `RvzWriter` now prefers the container's
partition-table key and falls back to the ticket key for plain ISO inputs.
-**Packaging & CI**: the NuGet package is API-compat validated against the last published
-release (`PackageValidationBaselineVersion` 1.0.0) and carries an embedded SPDX 2.2 SBOM;
-GitHub Actions (`.github/workflows/ci.yml`) builds and tests on `net8.0`/`net9.0`/`net10.0`
-with coverage, repeats the net10.0 build/tests on Windows and macOS, builds the DocFX API
-reference, packs, and publishes a smoke-tested framework-dependent single-file CLI artifact.
+**Packaging & CI**: the library NuGet package is API-compat validated against the last
+published release (`PackageValidationBaselineVersion` 1.0.0) and carries an embedded SPDX
+2.2 SBOM; the CLI ships as the `RVZSharp.Cli` .NET tool package and a WinGet package;
+GitHub Actions (`.github/workflows/ci.yml`) builds and tests on
+`net8.0`/`net9.0`/`net10.0`/`net11.0` with coverage, repeats the net11.0 build/tests on
+Windows and macOS, builds the DocFX API reference, packs both NuGet packages, and publishes
+a smoke-tested framework-dependent single-file CLI artifact.
CodeQL `security-extended`, dependency review, Dependabot, secret scanning and push
protection run on the repository; `docs/` is mirrored to the wiki and deployed to Pages with
a side menu. Dependabot keeps NuGet and Actions dependencies current.
@@ -375,6 +389,13 @@ byte-identical in Dolphin's `dolphin-tool`, including a full codec interop matri
both directions), and the NuGet package ships without the empty symbols package
(assemblies carry embedded PDBs). The public API stays compatible with 1.0.0.
+**1.3.0 (2026-11-27)** is a distribution release: the library, CLI and tests target
+.NET 8 through .NET 11 with C# 15, the CLI ships as the multi-target `RVZSharp.Cli` .NET
+tool package and a WinGet package, Linux bundles use `.tar.gz`, Apple Silicon macOS uses
+`.dmg`, and literal surrounding quotes are stripped from CLI path arguments. Dependency
+updates include Microsoft.NET.Test.Sdk 18.12.0 (CVE-2026-105544). The public API stays
+compatible with 1.0.0.
+
**1.2.0 (2026-11-06)** is a security, robustness and tooling release. `convert` now uses
Dolphin-compatible defaults (`-f rvz`, 128 KiB RVZ/GCZ blocks, 2 MiB WIA/CISO/WBFS blocks,
Zstandard/LZMA2 and level 5), hostile-input parsing is bounded across WIA/TGC/GCZ/NFS/FST,
diff --git a/RVZSharp.Benchmarks/Directory.Build.props b/RVZSharp.Benchmarks/Directory.Build.props
index 39b4158..2c75707 100644
--- a/RVZSharp.Benchmarks/Directory.Build.props
+++ b/RVZSharp.Benchmarks/Directory.Build.props
@@ -2,11 +2,11 @@
+ bin/. The library's target framework and analyzer rules must not apply there: the
+ generated project pins its own target framework and the benchmark classes use shapes
+ the analyzers reject. -->
- latest
+ 15.0
enable
enable
false
diff --git a/RVZSharp.Benchmarks/RVZSharp.Benchmarks.csproj b/RVZSharp.Benchmarks/RVZSharp.Benchmarks.csproj
index f30a7af..6e55a19 100644
--- a/RVZSharp.Benchmarks/RVZSharp.Benchmarks.csproj
+++ b/RVZSharp.Benchmarks/RVZSharp.Benchmarks.csproj
@@ -2,8 +2,8 @@
Exe
-
- net10.0
+
+ net11.0
enable
enable
false
diff --git a/RVZSharp.Cli.Tests/ProgramParsingTests.cs b/RVZSharp.Cli.Tests/ProgramParsingTests.cs
index 5928ea2..809568e 100644
--- a/RVZSharp.Cli.Tests/ProgramParsingTests.cs
+++ b/RVZSharp.Cli.Tests/ProgramParsingTests.cs
@@ -68,11 +68,48 @@ public void ParseArgs_InvalidChoice_Throws()
Assert.Contains("invalid choice", exception.Message);
}
+ /// Verifies that literal surrounding quotes are stripped from arguments.
+ [Theory]
+ [InlineData("\"C:\\Games\\game.rvz\"", "C:\\Games\\game.rvz")]
+ [InlineData("'game.iso'", "game.iso")]
+ [InlineData("\"game.rvz", "\"game.rvz")]
+ [InlineData("game.rvz\"", "game.rvz\"")]
+ [InlineData("\"\"", "")]
+ [InlineData("", "")]
+ public void UnquoteArgument_RemovesOnlyMatchingOuterQuotes(string argument, string expected)
+ {
+ Assert.Equal(expected, Program.UnquoteArgument(argument));
+ }
+
+ /// Verifies quoted path values are unquoted before they reach file I/O.
+ [Fact]
+ public void ParseArgs_QuotedSeparateValue_IsUnquoted()
+ {
+ var result = Program.ParseArgs(["-i", "\"game.iso\""], _spec);
+ Assert.Equal("game.iso", result.Get("input"));
+ }
+
+ /// Verifies quoted inline values are unquoted before they reach file I/O.
+ [Fact]
+ public void ParseArgs_QuotedInlineValue_IsUnquoted()
+ {
+ var result = Program.ParseArgs(["--input='game.rvz'"], _spec);
+ Assert.Equal("game.rvz", result.Get("input"));
+ }
+
+ /// Verifies quoted choices are unquoted before choice validation.
+ [Fact]
+ public void ParseArgs_QuotedChoice_IsUnquotedBeforeValidation()
+ {
+ var result = Program.ParseArgs(["-f", "\"rvz\""], _spec);
+ Assert.Equal("rvz", result.Get("format"));
+ }
+
/// Verifies that the product version matches the released version and parses.
[Fact]
public void CliVersion_MatchesProductVersion()
{
- Assert.StartsWith("1.2.0", CliVersion.Product);
- Assert.Equal(new Version(1, 2, 0), CliVersion.Parsed);
+ Assert.StartsWith("1.3.0", CliVersion.Product);
+ Assert.Equal(new Version(1, 3, 0), CliVersion.Parsed);
}
}
diff --git a/RVZSharp.Cli.Tests/RVZSharp.Cli.Tests.csproj b/RVZSharp.Cli.Tests/RVZSharp.Cli.Tests.csproj
index da9a804..23b0e21 100644
--- a/RVZSharp.Cli.Tests/RVZSharp.Cli.Tests.csproj
+++ b/RVZSharp.Cli.Tests/RVZSharp.Cli.Tests.csproj
@@ -1,7 +1,6 @@
- net10.0
enable
enable
false
diff --git a/RVZSharp.Cli/Logging/BugReportDetails.cs b/RVZSharp.Cli/Logging/BugReportDetails.cs
index 8a6e8a4..6dca728 100644
--- a/RVZSharp.Cli/Logging/BugReportDetails.cs
+++ b/RVZSharp.Cli/Logging/BugReportDetails.cs
@@ -1,3 +1,4 @@
+using System.Globalization;
using System.Runtime.InteropServices;
using System.Text;
@@ -39,7 +40,7 @@ internal static string Build(
var now = timestamp ?? DateTimeOffset.Now;
var sb = new StringBuilder();
sb.AppendLine("=== Environment Details ===");
- sb.AppendLine("Date: " + now.ToString("yyyy-MM-dd HH:mm:ss zzz"));
+ sb.AppendLine("Date: " + now.ToString("yyyy-MM-dd HH:mm:ss zzz", CultureInfo.InvariantCulture));
sb.AppendLine($"Application Name: {applicationName}");
sb.AppendLine($"Application Version: {version}");
sb.AppendLine($"OS Version: {Truncate(Environment.OSVersion.ToString(), 200)}");
diff --git a/RVZSharp.Cli/Program.cs b/RVZSharp.Cli/Program.cs
index 18ddccf..be8fb52 100644
--- a/RVZSharp.Cli/Program.cs
+++ b/RVZSharp.Cli/Program.cs
@@ -33,6 +33,11 @@ private static int Main(string[] args)
{
LogSetup.Initialize();
+ // Some launchers pass the quote characters as literal argument text (for example
+ // ProcessStartInfo.ArgumentList.Add("\"C:\\path\\game.rvz\"")). Accept both quoted
+ // and unquoted values instead of treating the quotes as part of the file name.
+ args = args.Select(UnquoteArgument).ToArray();
+
// Last-resort logging: exceptions that escape Main or a background task are still
// routed through Serilog (and therefore to the bug-report sink) before the process
// exits or the finalizer thread swallows them.
@@ -197,6 +202,25 @@ private static int Fail(string message)
return 1;
}
+ ///
+ /// Removes one pair of matching single or double quotes surrounding an argument.
+ /// Scripts and process launchers sometimes pass quoted values as literal argument text,
+ /// which would otherwise become part of the file name.
+ ///
+ /// The raw command-line argument.
+ /// The argument without one matching outer quote pair.
+ internal static string UnquoteArgument(string argument)
+ {
+ if (argument.Length >= 2 &&
+ ((argument[0] == '"' && argument[^1] == '"') ||
+ (argument[0] == '\'' && argument[^1] == '\'')))
+ {
+ return argument[1..^1];
+ }
+
+ return argument;
+ }
+
///
/// Opens a disc image by path, disposing the file stream when parsing fails (the reader
/// only takes ownership on success).
@@ -569,7 +593,10 @@ internal static ParsedArgs ParseArgs(IReadOnlyList args,
continue;
}
- var value = inlineValue ?? (i + 1 < args.Count ? args[++i] : string.Empty);
+ // Inline values (--input="path") keep the quotes until here because the whole
+ // argument starts with '-'; strip one matching pair for direct ParseArgs callers.
+ var value = UnquoteArgument(
+ inlineValue ?? (i + 1 < args.Count ? args[++i] : string.Empty));
if (value.Length == 0)
{
throw new CliErrorException($"option {arg} requires an argument");
@@ -812,7 +839,7 @@ private static int ConvertCommand(IReadOnlyList args)
catch (Exception e) when (e is IOException or UnauthorizedAccessException or RvzException)
{
Log.Information(e, "Failed to open input file '{InputPath}'", inputPath);
- return Fail("The input file could not be opened.");
+ return Fail($"The input file could not be opened: '{originalInput}'");
}
using (blob)
@@ -1240,7 +1267,7 @@ private static int HeaderCommand(IReadOnlyList args)
catch (Exception e) when (e is IOException or UnauthorizedAccessException or RvzException)
{
Log.Information(e, "Failed to open input file '{InputPath}'", path);
- return Fail("Unable to open disc image");
+ return Fail($"Unable to open disc image: '{inputPath}'");
}
using (blob)
@@ -1439,7 +1466,7 @@ private static int VerifyCommand(IReadOnlyList args)
catch (Exception e) when (e is IOException or UnauthorizedAccessException or RvzException)
{
Log.Information(e, "Failed to open input file '{InputPath}'", path);
- return Fail("Unable to open input file");
+ return Fail($"Unable to open input file: '{inputPath}'");
}
using (blob)
@@ -1691,7 +1718,7 @@ private static int ExtractCommand(IReadOnlyList args)
catch (Exception e) when (e is IOException or UnauthorizedAccessException or RvzException)
{
Log.Information(e, "Failed to open input file '{InputPath}'", path);
- return Fail("The input file could not be opened.");
+ return Fail($"The input file could not be opened: '{inputPath}'");
}
using (blob)
diff --git a/RVZSharp.Cli/RVZSharp.Cli.csproj b/RVZSharp.Cli/RVZSharp.Cli.csproj
index 43aa584..b9f782b 100644
--- a/RVZSharp.Cli/RVZSharp.Cli.csproj
+++ b/RVZSharp.Cli/RVZSharp.Cli.csproj
@@ -6,8 +6,8 @@
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
@@ -19,16 +19,35 @@
Exe
-
- net10.0
+
+ net8.0;net9.0;net10.0;net11.0
enable
enable
- false
+ true
+
+ true
+ rvzsharp
+ RVZSharp.Cli
+ RVZSharp CLI
+
+ Command-line tool for Dolphin RVZ/WIA, GCZ, CISO/WBI, WBFS, TGC, NFS and ISO
+ disc images. Convert, inspect, verify and extract GameCube/Wii disc images.
+
+ dolphin;rvz;wia;gcz;ciso;wbfs;tgc;nfs;gamecube;wii;iso;disc-image;cli;tool
+ GPL-2.0-or-later
+ icon.png
+ README.md
+ https://github.com/purelogiccode/RVZSharp
+ git
+ https://github.com/purelogiccode/RVZSharp
+ true
+
+ false
icon\icon.ico
PureLogicCode.com
-
en
@@ -39,6 +58,15 @@
true
+
+
+
+
+
+
+
+
diff --git a/RVZSharp/Compression/Lzma/Decoder.Fast.cs b/RVZSharp/Compression/Lzma/Decoder.Fast.cs
index 52fadd8..674111f 100644
--- a/RVZSharp/Compression/Lzma/Decoder.Fast.cs
+++ b/RVZSharp/Compression/Lzma/Decoder.Fast.cs
@@ -5,7 +5,7 @@
namespace RVZSharp.Compression.Lzma;
-// Fast LZMA decode path (net8.0+ only, see Directory.Build.props target frameworks). This
+// Fast LZMA decode path (see Directory.Build.props target framework). This
// mirrors the design of the reference LZMA SDK / 7-Zip C decoder (LzmaDec.c): probabilities
// are stored in flat ushort arrays (instead of arrays of BitDecoder structs reached through
// nested decoder objects),
diff --git a/RVZSharp/RVZSharp.csproj b/RVZSharp/RVZSharp.csproj
index 22e2214..2f4f6f9 100644
--- a/RVZSharp/RVZSharp.csproj
+++ b/RVZSharp/RVZSharp.csproj
@@ -5,8 +5,8 @@
enable
true
PureLogicCode.com
- 1.2.0
- 1.2.0
+ 1.3.0
+ 1.3.0
en
@@ -30,6 +30,11 @@
README.md
false
+ 1.3.0: distribution release. Targets net8.0, net9.0, net10.0 and net11.0
+ (C# 15), adds the RVZSharp.Cli .NET tool package and WinGet distribution, and
+ fixes literal surrounding quotes in CLI path arguments. Dependency updates
+ include Microsoft.NET.Test.Sdk 18.12.0 (CVE-2026-105544 fix). Public API stays
+ compatible with 1.0.0.
1.2.0: security and robustness release. CLI convert now defaults to RVZ with
Dolphin-compatible block/compression defaults, hostile-input parsing is bounded
(WIA/TGC/GCZ/NFS/FST, table and stream arithmetic), TGC extraction handles
@@ -60,8 +65,8 @@
nuget.org rejects it ("does not contain any symbol files"). Debuggers read the
embedded PDBs directly. -->
false
-
true
diff --git a/SECURITY.md b/SECURITY.md
index 1d7425f..1c55f49 100644
--- a/SECURITY.md
+++ b/SECURITY.md
@@ -7,14 +7,16 @@ are handled privately until a fix is available.
| Version | Supported |
|---|---|
-| 1.2.x | :white_check_mark: Active |
+| 1.3.x | :white_check_mark: Active |
+| 1.2.x | :white_check_mark: Security fixes only |
| 1.1.x | :white_check_mark: Security fixes only |
| 1.0.x | :white_check_mark: Security fixes only |
| < 1.0 | :x: Not supported |
-The latest release is published on [GitHub Releases](https://github.com/purelogiccode/RVZSharp/releases)
-and [NuGet](https://www.nuget.org/packages/RVZSharp/). Upgrade to the newest supported version
-before reporting an issue whenever possible.
+The latest release is published on [GitHub Releases](https://github.com/purelogiccode/RVZSharp/releases),
+[NuGet](https://www.nuget.org/packages/RVZSharp/) (library and CLI tool) and
+[WinGet](https://github.com/microsoft/winget-pkgs/tree/master/manifests/p/PureLogicCode/RVZSharp).
+Upgrade to the newest supported version before reporting an issue whenever possible.
## Reporting a vulnerability
@@ -69,6 +71,9 @@ Out of scope:
introduce high/critical vulnerable dependencies.
- **Dependabot** tracks NuGet and GitHub Actions updates, with security updates enabled.
- **Secret scanning and push protection** are enabled for the repository.
+- **Private vulnerability reporting** is enabled (Security → Advisories).
+- **Branch protection** on `master` requires the CI, CodeQL, DocFX and dependency-review
+ checks, blocks force pushes and deletions, and requires conversation resolution.
- **NuGet package validation** checks API compatibility and target-framework assets; Release
builds embed an SPDX SBOM.
- **Least-privilege workflows**: CI has read-only contents; only the release workflow gets
diff --git a/WhatsNew.md b/WhatsNew.md
index 140c897..daebade 100644
--- a/WhatsNew.md
+++ b/WhatsNew.md
@@ -1,11 +1,31 @@
# What's new in RVZSharp
Release highlights, newest first. The full announcements are in
+[`docs/release-notes-1.3.0.md`](docs/release-notes-1.3.0.md),
[`docs/release-notes-1.2.0.md`](docs/release-notes-1.2.0.md),
[`docs/release-notes-1.1.1.md`](docs/release-notes-1.1.1.md),
[`docs/release-notes-1.1.0.md`](docs/release-notes-1.1.0.md) and
[`docs/release-notes-1.0.0.md`](docs/release-notes-1.0.0.md).
+## 1.3.0 (2026-11-27)
+
+A distribution and compatibility release. The public API stays compatible with 1.0.0.
+
+- **.NET 8 through .NET 11** - library, CLI and tests target `net8.0`/`net9.0`/`net10.0`/
+ `net11.0` with C# 15; benchmarks target `net11.0`.
+- **Two NuGet packages** - `RVZSharp` (library) and the new multi-target `RVZSharp.Cli`
+ .NET tool package (`rvzsharp` command).
+- **WinGet** - Windows CLI releases are published as `PureLogicCode.RVZSharp`.
+- **Release archives** - Linux bundles are `.tar.gz`, Apple Silicon macOS bundles are
+ `.dmg`, and Windows/macOS Intel bundles remain `.zip`.
+- **Quoted paths fixed** - literal surrounding quotes are stripped from CLI arguments and
+ file-open errors include the path.
+- **Dependencies** - coverlet.collector 10.1.1, Meziantou.Analyzer 3.0.342,
+ Microsoft.NET.Test.Sdk 18.12.0 (CVE-2026-105544 fix), Microsoft.SourceLink.GitHub
+ 10.0.404 and ZstdSharp.Port 0.9.1.
+- **Tests** - **613 library tests** and **106 CLI tests** per framework, plus **301 slow
+ tests** per framework.
+
## 1.2.0 (2026-11-06)
A security, robustness and tooling release. The public API stays compatible with 1.0.0.
diff --git a/docfx/docfx.json b/docfx/docfx.json
index b4b1e7a..e19aa30 100644
--- a/docfx/docfx.json
+++ b/docfx/docfx.json
@@ -12,7 +12,7 @@
],
"dest": "api",
"properties": {
- "TargetFramework": "net8.0"
+ "TargetFramework": "net11.0"
},
"disableGitFeatures": true
}
diff --git a/docfx/index.md b/docfx/index.md
index 8b0caef..d023af4 100644
--- a/docfx/index.md
+++ b/docfx/index.md
@@ -29,5 +29,7 @@ of the `RVZSharp` library. The public API is stable across the `1.x` line.
## Source
- [GitHub repository](https://github.com/purelogiccode/RVZSharp)
-- [NuGet package](https://www.nuget.org/packages/RVZSharp/)
+- [Library NuGet package](https://www.nuget.org/packages/RVZSharp/)
+- [CLI NuGet tool package](https://www.nuget.org/packages/RVZSharp.Cli/)
+- [WinGet package](https://github.com/microsoft/winget-pkgs/tree/master/manifests/p/PureLogicCode/RVZSharp)
- [Releases](https://github.com/purelogiccode/RVZSharp/releases)
diff --git a/docs/README.md b/docs/README.md
index a9938bf..85dde99 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -24,8 +24,11 @@ permalink: /
# RVZSharp Documentation
-RVZSharp is a .NET 8 / 9 / 10 library and command-line tool for **GameCube and Wii disc
+RVZSharp is a .NET 8 / 9 / 10 / 11 library and command-line tool for **GameCube and Wii disc
images**.
+> [RVZStudio](https://github.com/purelogiccode/RVZStudio) is the companion desktop GUI for
+> RVZSharp, maintained alongside this repository.
+
It reads the modern **RVZ** container (and its predecessor **WIA**), decodes the classic
legacy formats (**GCZ, CISO/WBI, WBFS, TGC, NFS**) into a canonical ISO view, and **writes
RVZ, WIA and GCZ files** from any of them — mirroring the behaviour of the reference
@@ -35,9 +38,9 @@ implementations in
| | |
|---|---|
-| Target frameworks | `net8.0`, `net9.0`, `net10.0` |
+| Target frameworks | `net8.0`, `net9.0`, `net10.0`, `net11.0` (C# 15) |
| Solution file | `CSharp_RVZSharp.sln` |
-| Tests | 613 fast library tests (every framework, ~1 min) + 97 CLI tests + 276 real-file slow tests — the solution runs fast-only by default (`dotnet test CSharp_RVZSharp.sln -c Release`); run the slow suite explicitly with `dotnet test RVZSharp.Slow.Tests -c Release` |
+| Tests | 613 fast library tests per framework (~1 min each) + 106 CLI tests + 276 real-file slow tests — the solution runs fast-only by default (`dotnet test CSharp_RVZSharp.sln -c Release`); run the slow suite explicitly with `dotnet test RVZSharp.Slow.Tests -c Release` |
| Read support | RVZ, WIA, GCZ, CISO/WBI, WBFS, TGC, NFS, plain ISO |
| Write support | RVZ (None, Zstd, Bzip2, LZMA1, LZMA2; optional PRNG-junk packing), WIA (None, PURGE, Bzip2, LZMA1, LZMA2) and GCZ (zlib deflate) |
| Reference sources | `References/dolphin-master/` (C++), `References/rvz-1.0.3/` (Go) |
@@ -46,9 +49,9 @@ implementations in
| Page | What it covers |
|---|---|
-| [What's new](whats-new.md) | Release highlights (1.2.0, 1.1.1, 1.1.0, 1.0.0) |
+| [What's new](whats-new.md) | Release highlights (1.3.0, 1.2.0, 1.1.1, 1.1.0, 1.0.0) |
| [Getting started](getting-started.md) | Prerequisites, build, test, first commands |
-| [Packaging & distribution](packaging.md) | NuGet package contents, build, publish, versioning |
+| [Packaging & distribution](packaging.md) | Library + CLI NuGet packages, WinGet, build, publish, versioning |
| [CLI reference](usage-cli.md) | `convert`, `header`, `verify`, `extract` (+ legacy `info`/`decode`) — options and examples |
| [Library API](usage-library.md) | `Blob`, `RvzReader`, `RvzWriter`, `WiaWriter`, `GczWriter`, `DiscFileSystem`, `DiscHasher`, codecs, packing API |
| [Architecture](architecture.md) | Module map, read/write pipelines, design decisions |
@@ -60,7 +63,7 @@ implementations in
| [Contributing](contributing.md) | Development setup, conventions, tests and pull requests |
| [Security](security.md) | Vulnerability reporting, supported versions and repository protections |
| [API reference](https://purelogiccode.github.io/RVZSharp/api/) | Generated DocFX reference for the public library API |
-| [Release notes](release-notes-1.2.0.md) | 1.2.0, [1.1.1](release-notes-1.1.1.md), [1.1.0](release-notes-1.1.0.md) and [1.0.0](release-notes-1.0.0.md) announcement content (GitHub release posts) |
+| [Release notes](release-notes-1.3.0.md) | 1.3.0, [1.2.0](release-notes-1.2.0.md), [1.1.1](release-notes-1.1.1.md), [1.1.0](release-notes-1.1.0.md) and [1.0.0](release-notes-1.0.0.md) announcement content (GitHub release posts) |
| [Roadmap & status](roadmap.md) | Milestones, limitations, open questions |
| [FAQ](faq.md) | Common questions |
@@ -87,8 +90,8 @@ These pages are published twice from the same files, automatically:
are rewritten to the extensionless wiki form. The wiki is fully
generated — edit these files, never the wiki pages.
-Releases (bundled CLI zips, NuGet publishing) and the automation setup are documented
-in [Packaging & distribution](packaging.md).
+Releases (bundled CLI archives, library and CLI NuGet packages, WinGet) and the automation
+setup are documented in [Packaging & distribution](packaging.md).
## Feature overview
diff --git a/docs/_Sidebar.md b/docs/_Sidebar.md
index 15758e0..953f052 100644
--- a/docs/_Sidebar.md
+++ b/docs/_Sidebar.md
@@ -27,6 +27,7 @@
- [Security](security)
- [What's new](whats-new)
+- [Release notes 1.3.0](release-notes-1.3.0)
- [Release notes 1.2.0](release-notes-1.2.0)
- [Release notes 1.1.1](release-notes-1.1.1)
- [Release notes 1.1.0](release-notes-1.1.0)
diff --git a/docs/_data/nav.yml b/docs/_data/nav.yml
index 4bd334f..8efd73b 100644
--- a/docs/_data/nav.yml
+++ b/docs/_data/nav.yml
@@ -28,6 +28,8 @@
url: "/security.html"
- title: API reference
url: "/api/"
+- title: Release notes 1.3.0
+ url: "/release-notes-1.3.0.html"
- title: Release notes 1.2.0
url: "/release-notes-1.2.0.html"
- title: Release notes 1.1.1
diff --git a/docs/contributing.md b/docs/contributing.md
index 218a8d3..fec8677 100644
--- a/docs/contributing.md
+++ b/docs/contributing.md
@@ -36,7 +36,7 @@ dotnet test RVZSharp.Slow.Tests -c Release
- The **library** (`RVZSharp/`) has no logging, telemetry or UI dependencies. Serilog,
ApplicationStats and bug reporting belong to `RVZSharp.Cli/` only.
- Warnings are errors and analyzers are enabled; the build must stay clean on
- `net8.0`, `net9.0` and `net10.0`.
+ `net8.0`, `net9.0`, `net10.0` and `net11.0`.
- Asynchronous methods end in `Async`; library async methods take a `CancellationToken`.
- Public API is XML-documented and must remain compatible with the published package
baseline. Additive changes are preferred.
diff --git a/docs/getting-started.md b/docs/getting-started.md
index b72d38d..400d5bc 100644
--- a/docs/getting-started.md
+++ b/docs/getting-started.md
@@ -2,8 +2,8 @@
## Prerequisites
-- [.NET SDK 10](https://dotnet.microsoft.com/download) (or newer). The library and the
- test suite target **`net8.0`, `net9.0` and `net10.0`**; the CLI targets `net10.0`.
+- [.NET SDK 11](https://dotnet.microsoft.com/download) to build (C# 15). The library, CLI
+ and test suite target **`net8.0`, `net9.0`, `net10.0` and `net11.0`**.
- A disc image to experiment with: a plain `.iso`, or a `.rvz`/`.wia`/`.gcz`/`.ciso`/
`.wbfs`/`.tgc`/`.nfs` file.
@@ -11,38 +11,62 @@
## Install the CLI
-Download `rvzsharp_v_.zip` from the
-[GitHub Releases](https://github.com/purelogiccode/RVZSharp/releases) page, unzip it
-and run `RVZSharp` (`RVZSharp.exe` on Windows):
+Install the .NET tool (runs on .NET 8 or newer, picking the matching `net8.0`–`net11.0`
+asset):
+
+```bash
+dotnet tool install -g RVZSharp.Cli
+rvzsharp --help
+```
+
+On Windows, WinGet installs the release bundle and the .NET 11 runtime:
+
+```powershell
+winget install PureLogicCode.RVZSharp
+```
+
+Or download the platform archive from the
+[GitHub Releases](https://github.com/purelogiccode/RVZSharp/releases) page:
| | |
|---|---|
| `rvzsharp_v_win-x64.zip` | Windows 10/11, x64 |
| `rvzsharp_v_win-arm64.zip` | Windows 11, arm64 |
-| `rvzsharp_v_linux-x64.zip` | Linux, x64 |
-| `rvzsharp_v_linux-arm64.zip` | Linux, arm64 |
+| `rvzsharp_v_linux-x64.tar.gz` | Linux, x64 |
+| `rvzsharp_v_linux-arm64.tar.gz` | Linux, arm64 |
| `rvzsharp_v_osx-x64.zip` | macOS, Intel |
-| `rvzsharp_v_osx-arm64.zip` | macOS, Apple Silicon |
-
-Each bundle holds the single-file executable plus `LICENSE`, `README.md`, `WhatsNew.md`
-and `THIRD-PARTY-NOTICES.md`. The executables are framework-dependent — the .NET runtime
-is not embedded — so install the
-[.NET 10 Runtime](https://dotnet.microsoft.com/download/dotnet/10.0) first (the SDK
+| `rvzsharp_v_osx-arm64.dmg` | macOS, Apple Silicon |
+
+Extract the archive (`unzip`/`Expand-Archive` for `.zip`, `tar -xzf` for `.tar.gz`, open
+the `.dmg` and copy the executable on Apple Silicon), then run `RVZSharp`
+(`RVZSharp.exe` on Windows). Each bundle holds the single-file executable plus `LICENSE`,
+`README.md`, `WhatsNew.md` and `THIRD-PARTY-NOTICES.md`. The executables are
+framework-dependent — the .NET runtime is not embedded — so install the
+[.NET 11 Runtime](https://dotnet.microsoft.com/download/dotnet/11.0) first (the SDK
works too). Verify with `RVZSharp --help` (also prints the product version). Each
release page also carries `SHA256SUMS.txt` to verify a download. To build from source
instead, see [Building](#building) below.
+## Install the library
+
+The library package supports .NET 8 through .NET 11:
+
+```bash
+dotnet add package RVZSharp --version 1.3.0
+```
+
## Repository layout
```
CSharp_RVZSharp.sln solution file (fast test suite runs solution-wide)
-Directory.Build.props net8.0/net9.0/net10.0, Nullable, ImplicitUsings, TreatWarningsAsErrors
-RVZSharp/ the library
-RVZSharp.Cli/ the header/verify/convert/extract tool
-RVZSharp.Tests/ fast unit + end-to-end tests (613, ×3 frameworks)
-RVZSharp.Cli.Tests/ CLI tests (97: parsing, extract paths, completions, update checker, logging)
+Directory.Build.props net8.0/net9.0/net10.0/net11.0, C# 15, warnings as errors
+RVZSharp/ the library (NuGet package RVZSharp)
+RVZSharp.Cli/ the CLI (NuGet tool package RVZSharp.Cli)
+RVZSharp.Tests/ fast unit + end-to-end tests (613 per framework)
+RVZSharp.Cli.Tests/ CLI tests (106 per framework: parsing, extract paths, completions, update checker, logging)
RVZSharp.Slow.Tests/ real-file tests (276) — kept out of the solution; run explicitly
-RVZSharp.Benchmarks/ BenchmarkDotNet throughput suite (net10.0, in the solution)
+RVZSharp.Benchmarks/ BenchmarkDotNet throughput suite (net11.0, in the solution)
+scripts/ WinGet manifest generator
References/dolphin-master/ Dolphin source (C++) — format reference
References/rvz-1.0.3/ Go RVZ reader — cross-check reference
docs/ the wiki (this documentation)
@@ -62,9 +86,9 @@ The build treats warnings as errors, so a clean build means zero warnings.
dotnet test CSharp_RVZSharp.sln -c Release
```
-Expected result: `Passed: 613, Failed: 0` on **each** of `net8.0`, `net9.0` and `net10.0`
-(the suite runs once per target framework). The real-file suite is not part of the solution
-and runs only when requested:
+Expected result: `Passed: 613` library tests and `Passed: 106` CLI tests on each of
+`net8.0`, `net9.0`, `net10.0` and `net11.0`. The real-file suite is not part of the
+solution and runs only when requested:
```bash
dotnet test RVZSharp.Slow.Tests -c Release # 276 real-game tests, ~30 min when mounted
diff --git a/docs/packaging.md b/docs/packaging.md
index 3f1153e..f95e7b5 100644
--- a/docs/packaging.md
+++ b/docs/packaging.md
@@ -1,45 +1,53 @@
# Packaging & distribution
-`RVZSharp` is published as a NuGet package. This page documents what the package contains,
-how to build it, how to publish it, and the quality gates that protect the API.
+`RVZSharp` ships as two NuGet packages: the **library** (`RVZSharp`) and the **.NET tool**
+(`RVZSharp.Cli`). Windows CLI releases are also published through **WinGet**. This page
+documents what the packages contain, how to build and publish them, and the quality gates.
## Package facts
| | |
|---|---|
-| Package ID | `RVZSharp` |
-| Version | `1.2.0` (SemVer; bumped per release) |
-| Target frameworks | `net8.0`, `net9.0`, `net10.0` |
+| Package IDs | `RVZSharp` (library), `RVZSharp.Cli` (.NET tool) |
+| Version | `1.3.0` (SemVer; bumped per release) |
+| Target frameworks | `net8.0`, `net9.0`, `net10.0`, `net11.0` (C# 15) |
| License | GPL-2.0-or-later (`PackageLicenseExpression`) |
-| Dependencies | `LZMA-SDK`, `SharpZipLib`, `ZstdSharp.Port` (all pure managed) |
+| Dependencies | library: `LZMA-SDK`, `SharpZipLib`, `ZstdSharp.Port`; CLI: `Serilog`, `Serilog.Sinks.Console`, `Serilog.Sinks.File` (all pure managed) |
| Symbols | embedded portable PDBs inside the assemblies (no `.snupkg`) |
-| SBOM | SPDX 2.2 manifest embedded at `_manifest/spdx_2.2/manifest.spdx.json` (Release packs) |
+| SBOM | library package only: SPDX 2.2 manifest at `_manifest/spdx_2.2/manifest.spdx.json` (Release packs) |
| Reproducible | deterministic builds (`ContinuousIntegrationBuild` for release packs) |
-## What's inside the package
+## What's inside the packages
```
-lib/net8.0/RVZSharp.dll assemblies per target framework
-lib/net8.0/RVZSharp.xml XML API documentation (IntelliSense)
-lib/net9.0/…
-lib/net10.0/…
-README.md package readme (shown on nuget.org)
-LICENSE GPL-2.0-or-later text
-THIRD-PARTY-NOTICES.md MIT notice for the vendored LZMA decoder
-_manifest/spdx_2.2/… SPDX 2.2 SBOM (+ .sha256) generated by Microsoft.Sbom.Targets
+RVZSharp..nupkg
+ lib/net8.0/RVZSharp.dll assembly per target framework
+ lib/net8.0/RVZSharp.xml XML API documentation (IntelliSense)
+ lib/net9.0/… lib/net10.0/… lib/net11.0/…
+ README.md LICENSE THIRD-PARTY-NOTICES.md icon.png
+ _manifest/spdx_2.2/… SPDX 2.2 SBOM (+ .sha256)
+
+RVZSharp.Cli..nupkg
+ tools/net8.0/any/… .NET tool payload per target framework
+ tools/net9.0/any/… tools/net10.0/any/… tools/net11.0/any/…
+ tools/net8.0/any/DotnetToolSettings.xml command name: rvzsharp
+ README.md LICENSE THIRD-PARTY-NOTICES.md icon.png
```
-## Building the package
+## Building the packages
```bash
dotnet pack RVZSharp/RVZSharp.csproj -c Release
+dotnet pack RVZSharp.Cli/RVZSharp.Cli.csproj -c Release
# output: RVZSharp/bin/Release/RVZSharp..nupkg
+# RVZSharp.Cli/bin/Release/RVZSharp.Cli..nupkg
```
For a deterministic release build (reproducible SourceLink paths):
```bash
dotnet pack RVZSharp/RVZSharp.csproj -c Release -p:ContinuousIntegrationBuild=true
+dotnet pack RVZSharp.Cli/RVZSharp.Cli.csproj -c Release -p:ContinuousIntegrationBuild=true
```
## Quality gates
@@ -47,27 +55,30 @@ dotnet pack RVZSharp/RVZSharp.csproj -c Release -p:ContinuousIntegrationBuild=tr
1. **Zero warnings** — `TreatWarningsAsErrors` is on; the pack fails on any analyzer
warning.
2. **Package validation** — `EnablePackageValidation` checks at pack time that the
- `net8.0`/`net9.0`/`net10.0` assets are compatible with the package's supported
+ `net8.0`/`net9.0`/`net10.0`/`net11.0` assets are compatible with the package's supported
frameworks, and `PackageValidationBaselineVersion` (currently `1.0.0`) diffs the public
API against the last published release (API-compat analysis). A breaking change fails
`dotnet pack`; intentional breaks must be suppressed in a `CompatibilitySuppressions.xml`
with a justification.
-3. **Tests on every framework** — `dotnet test CSharp_RVZSharp.sln -c Release` runs the
- fast suite (613 tests) on `net8.0`, `net9.0` and `net10.0`; the real-file slow suite
- (`dotnet test RVZSharp.Slow.Tests -c Release`) runs on machines with the games mounted.
+3. **Tests** — `dotnet test CSharp_RVZSharp.sln -c Release` runs the fast library suite
+ (613 tests per framework) and the CLI suite (106 tests) on `net8.0`, `net9.0`, `net10.0`
+ and `net11.0`; the real-file slow suite (`dotnet test RVZSharp.Slow.Tests -c Release`)
+ runs on machines with the games mounted.
4. **Consumer smoke test** — before publishing, a fresh project consuming only the nupkg
- (from a local feed) must compile and run on .NET 8 and .NET 10, converting and decoding
- a disc image byte-exactly. This catches packaging mistakes (missing files, wrong
+ (from a local feed) must compile and run on .NET 8, 9, 10 and 11, converting and decoding
+ a disc image byte-exactly. The .NET tool package is installed from the local feed and
+ `rvzsharp --help` must succeed. This catches packaging mistakes (missing files, wrong
dependency graph) that unit tests cannot.
5. **Native AOT / trimming** — the library sets `IsAotCompatible`/`IsTrimmable` and the CLI
sets `EnableAotAnalyzer`/`EnableTrimAnalyzer`, so trim/AOT warnings fail the build on all
- frameworks. Release smoke test: `dotnet publish RVZSharp.Cli -r win-x64
+ four frameworks. Release smoke test: `dotnet publish RVZSharp.Cli -r win-x64
-p:PublishTrimmed=true` (and `-p:PublishAot=true`) must produce warning-free binaries
that round-trip a disc image byte-exactly.
-6. **CI** - `.github/workflows/ci.yml` builds and runs the fast suite on all three
- frameworks (coverage artifact), repeats the `net10.0` build/tests on Windows and macOS,
- builds the DocFX API reference, packs with API validation + SBOM, and publishes the
- framework-dependent single-file CLI (win-x64) that is smoke-tested before upload.
+6. **CI** - `.github/workflows/ci.yml` builds and runs the fast suite on all four
+ frameworks (coverage artifact), repeats the `net11.0` build/tests on Windows and macOS,
+ builds the DocFX API reference, packs both packages with API validation + SBOM (library)
+ and smoke-tests the CLI tool package, and publishes the framework-dependent single-file
+ CLI (win-x64) that is smoke-tested before upload.
`.github/workflows/codeql.yml` runs CodeQL `security-extended` on every push/PR and
weekly; `.github/workflows/dependency-review.yml` blocks vulnerable dependency changes.
`.github/workflows/release.yml` builds the release bundles (below),
@@ -79,40 +90,48 @@ dotnet pack RVZSharp/RVZSharp.csproj -c Release -p:ContinuousIntegrationBuild=tr
## Release process
Releases are built by `.github/workflows/release.yml`. Push a tag `v`
-(`v1.1.0`, `v1.2.0-beta.1`, … — valid SemVer after the leading `v`):
+(`v1.1.0`, `v1.3.0-beta.1`, … — valid SemVer after the leading `v`):
1. **CLI bundles** — the framework-dependent single-file CLI is published for six
- runtimes, smoke-tested on a native runner (`--help` must exit 0) and zipped, each
- zip holding the executable plus `LICENSE`, `README.md`, `WhatsNew.md` and
+ runtimes, smoke-tested on a native runner (`--help` must exit 0) and packaged, each
+ archive holding the executable plus `LICENSE`, `README.md`, `WhatsNew.md` and
`THIRD-PARTY-NOTICES.md`:
| Asset | Runner |
|---|---|
| `rvzsharp_v_win-x64.zip` | Windows Server 2025 (x64) |
| `rvzsharp_v_win-arm64.zip` | Windows 11 (arm64) |
- | `rvzsharp_v_linux-x64.zip` | Ubuntu 24.04 (x64) |
- | `rvzsharp_v_linux-arm64.zip` | Ubuntu 24.04 (arm64) |
+ | `rvzsharp_v_linux-x64.tar.gz` | Ubuntu 24.04 (x64) |
+ | `rvzsharp_v_linux-arm64.tar.gz` | Ubuntu 24.04 (arm64) |
| `rvzsharp_v_osx-x64.zip` | macOS 15 (Intel) |
- | `rvzsharp_v_osx-arm64.zip` | macOS 26 (Apple Silicon) |
+ | `rvzsharp_v_osx-arm64.dmg` | macOS 26 (Apple Silicon) |
- The bundles are framework-dependent: the .NET 10 runtime is **not** embedded, so
+ The bundles are framework-dependent: the .NET 11 runtime is **not** embedded, so
target machines install it (see
- [Getting started](getting-started.md#install-the-cli)). On Linux and macOS the zip
- is built with `zip(1)` so the executable bit survives extraction.
-2. **NuGet package** — `dotnet pack` with API-compat validation and the embedded
- SBOM (`RVZSharp..nupkg`; the PDBs are embedded, so no symbols package).
-3. **GitHub Release** — created with the six zips, `SHA256SUMS.txt` and both
- packages. The notes come from `docs/release-notes-.md` when that file
- exists (`release-notes-1.0.0.md` shows the format); otherwise a fallback body
- is used. Tags containing `-` are marked as pre-releases.
-4. **nuget.org** — stable versions are pushed automatically when the
- `NUGET_API_KEY` repository secret is set (nuget.org → API Keys → repository
- secret); without it the workflow logs a warning and the GitHub Release remains
- the only published artifact.
+ [Getting started](getting-started.md#install-the-cli)). Linux uses `tar.gz` (which
+ preserves the executable bit), macOS Intel uses `zip(1)` for the same reason, and
+ Apple Silicon ships as a compressed UDZO `.dmg`.
+2. **NuGet packages** — `dotnet pack` builds `RVZSharp..nupkg` with
+ API-compat validation and the embedded SBOM, plus
+ `RVZSharp.Cli..nupkg`, the multi-target .NET tool package (embedded PDBs,
+ so no symbols package).
+3. **GitHub Release** — created with the six archives, `SHA256SUMS.txt`, both packages and
+ `rvzsharp_v_winget.zip` containing the generated WinGet manifests. The notes
+ come from `docs/release-notes-.md` when that file exists
+ (`release-notes-1.0.0.md` shows the format); otherwise a fallback body is used. Tags
+ containing `-` are marked as pre-releases.
+4. **nuget.org** — stable versions of both packages are pushed automatically when the
+ `NUGET_API_KEY` repository secret is set (nuget.org → API Keys → repository secret);
+ without it the workflow logs a warning and the GitHub Release remains the only
+ published artifact.
+5. **WinGet** — a Windows job generates the manifests from the `win-x64`/`win-arm64`
+ zips and attaches the bundle to the release. When the `WINGET_TOKEN` secret is set,
+ `wingetcreate submit` opens a pull request against `microsoft/winget-pkgs`; without
+ it the manifests stay attached for manual submission.
Run the workflow manually (`workflow_dispatch` with a `version` input) for a dry
run: everything builds and uploads as run artifacts for inspection, but no GitHub
-Release is created and nothing is pushed to nuget.org.
+Release is created and nothing is pushed to nuget.org or WinGet.
## Wiki and Pages automation
@@ -146,18 +165,55 @@ process](#release-process) — the `NUGET_API_KEY` secret must be set). The manu
equivalent is:
```bash
-# 1. Build the package.
+# 1. Build both packages.
dotnet pack RVZSharp/RVZSharp.csproj -c Release
+dotnet pack RVZSharp.Cli/RVZSharp.Cli.csproj -c Release
-# 2. Push (the API key comes from nuget.org → API Keys).
-dotnet nuget push RVZSharp/bin/Release/RVZSharp.1.2.0.nupkg \
+# 2. Push both (the API key comes from nuget.org → API Keys).
+dotnet nuget push RVZSharp/bin/Release/RVZSharp.1.3.0.nupkg \
--source https://api.nuget.org/v3/index.json \
--api-key
+dotnet nuget push RVZSharp.Cli/bin/Release/RVZSharp.Cli.1.3.0.nupkg \
+ --source https://api.nuget.org/v3/index.json \
+ --api-key
+```
+
+After publishing, verify both package pages: readme rendering, license, dependencies, the
+`lib/` folders for all four target frameworks and the embedded `_manifest/spdx_2.2` SBOM
+on the library page, and that `dotnet tool install -g RVZSharp.Cli` resolves the tool
+package.
+
+## WinGet
+
+The Windows CLI is published to WinGet as `PureLogicCode.RVZSharp`. The manifests are
+generated from the two Windows release zips by
+[`scripts/Generate-WingetManifests.ps1`](https://github.com/purelogiccode/RVZSharp/blob/master/scripts/Generate-WingetManifests.ps1),
+which fills in the SHA-256 hashes and points the installers at the GitHub release assets. The
+portable installer command alias is `rvzsharp`, and the manifest depends on
+`Microsoft.DotNet.Runtime.11` because the release bundles are framework-dependent.
+
+Generate and inspect the manifests locally with the release zips:
+
+```powershell
+./scripts/Generate-WingetManifests.ps1 `
+ -Version 1.3.0 -ReleaseTag v1.3.0 `
+ -InputDirectory artifacts/release `
+ -OutputDirectory artifacts/winget-manifests
+
+winget validate --manifest artifacts/winget-manifests
```
-After publishing, verify the package page: readme rendering, license, dependencies, the
-`lib/` folder list for all three target frameworks, and the embedded
-`_manifest/spdx_2.2` SBOM.
+To submit manually, download the `rvzsharp_v_winget.zip` asset from the GitHub
+release, unzip it and run:
+
+```powershell
+wingetcreate submit --prtitle "Update PureLogicCode.RVZSharp to 1.3.0" `
+ --token --no-open artifacts/winget-manifests
+```
+
+The release workflow does this automatically when the `WINGET_TOKEN` repository secret is
+configured. The token needs the `public_repo` scope so WinGetCreate can fork
+`microsoft/winget-pkgs` and open the version pull request.
## Versioning policy
@@ -184,28 +240,38 @@ To test the package without publishing:
```
```bash
-dotnet add package RVZSharp --version 1.2.0
+dotnet add package RVZSharp --version 1.3.0
```
## The CLI
-The command-line tool (`RVZSharp.Cli`) is **not** packaged as a NuGet tool — it is a
-reference implementation and smoke-test surface for the library. It targets `net10.0`
-and ships as framework-dependent single-file binaries (one executable per runtime; the
-.NET 10 runtime is a prerequisite on the target machine, it is not embedded):
+`RVZSharp.Cli` is a reference implementation for the library, a smoke-test surface, and a
+multi-target .NET tool package (`net8.0` through `net11.0`). Install it from NuGet or
+WinGet:
+
+```bash
+dotnet tool install -g RVZSharp.Cli
+rvzsharp --help
+
+# Windows:
+winget install PureLogicCode.RVZSharp
+```
+
+From a source checkout:
```bash
dotnet build CSharp_RVZSharp.sln -c Release
dotnet run --project RVZSharp.Cli -c Release -- header -i game.rvz
# Release bundles (all six RIDs), framework-dependent single-file:
-dotnet publish RVZSharp.Cli -c Release -f net10.0 -r win-x64 --self-contained false \
+dotnet publish RVZSharp.Cli -c Release -f net11.0 -r win-x64 --self-contained false \
-p:PublishSingleFile=true
```
-End users do not need the SDK: each GitHub Release (see [Release
-process](#release-process)) ships `rvzsharp_v_.zip` bundles
-(`win-x64`, `win-arm64`, `linux-x64`, `linux-arm64`, `osx-x64`, `osx-arm64`) — unzip,
-install the [.NET 10 Runtime](https://dotnet.microsoft.com/download/dotnet/10.0) and run
-`RVZSharp` (`RVZSharp.exe` on Windows); see [Getting
-started](getting-started.md#install-the-cli).
+Each GitHub Release (see [Release process](#release-process)) ships
+`rvzsharp_v_.{zip|tar.gz|dmg}` bundles (`win-x64`, `win-arm64`,
+`linux-x64`, `linux-arm64`, `osx-x64`, `osx-arm64`) — extract the archive, install the
+[.NET 11 Runtime](https://dotnet.microsoft.com/download/dotnet/11.0) and run `RVZSharp`
+(`RVZSharp.exe` on Windows); see [Getting started](getting-started.md#install-the-cli).
+The .NET tool package does not need a specific runtime release: it selects the matching
+`net8.0`–`net11.0` asset from the installed runtime.
diff --git a/docs/release-notes-1.3.0.md b/docs/release-notes-1.3.0.md
new file mode 100644
index 0000000..c0c5858
--- /dev/null
+++ b/docs/release-notes-1.3.0.md
@@ -0,0 +1,81 @@
+# RVZSharp 1.3.0 Release Notes
+
+RVZSharp 1.3.0 is a **distribution and compatibility release**. The public API stays
+compatible with 1.0.0.
+
+> **Companion GUI:** [RVZStudio](https://github.com/purelogiccode/RVZStudio) is the desktop
+> GUI for RVZSharp, maintained alongside this repository.
+
+## Highlights
+
+- **.NET 8 through .NET 11** — the library, CLI and tests now target `net8.0`, `net9.0`,
+ `net10.0` and `net11.0` with **C# 15**; the benchmarks target `net11.0`.
+- **Two NuGet packages** — the library stays `RVZSharp`; the CLI is now its own
+ multi-target .NET tool package, `RVZSharp.Cli`, installed with
+ `dotnet tool install -g RVZSharp.Cli` and invoked as `rvzsharp`.
+- **WinGet** — the Windows CLI is published as `PureLogicCode.RVZSharp`:
+ `winget install PureLogicCode.RVZSharp`.
+- **Quoted paths fixed** — literal surrounding single or double quotes are stripped from
+ CLI arguments, so scripts that pass `"C:\path\game.rvz"` as the argument text work.
+ File-open errors now include the path.
+- **Dependencies** — coverlet.collector 10.1.1, Meziantou.Analyzer 3.0.342,
+ Microsoft.NET.Test.Sdk 18.12.0 (includes the CVE-2026-105544 fix),
+ Microsoft.SourceLink.GitHub 10.0.404 and ZstdSharp.Port 0.9.1.
+
+## Install
+
+### Library
+
+```bash
+dotnet add package RVZSharp --version 1.3.0
+```
+
+### CLI
+
+```bash
+dotnet tool install -g RVZSharp.Cli --version 1.3.0
+rvzsharp --help
+```
+
+On Windows, WinGet installs the portable bundle and its .NET 11 runtime dependency:
+
+```powershell
+winget install PureLogicCode.RVZSharp
+```
+
+### CLI downloads (1.3.0 bundles)
+
+The bundles are **framework-dependent single-file** executables: install the
+[.NET 11 Runtime](https://dotnet.microsoft.com/download/dotnet/11.0) first. Linux ships
+as `.tar.gz`, Apple Silicon macOS as `.dmg`, and Windows/macOS Intel as `.zip`.
+
+| Asset | Platform |
+|---|---|
+| `rvzsharp_v1.3.0_win-x64.zip` | Windows 10/11, x64 |
+| `rvzsharp_v1.3.0_win-arm64.zip` | Windows 11, arm64 |
+| `rvzsharp_v1.3.0_linux-x64.tar.gz` | Linux, x64 |
+| `rvzsharp_v1.3.0_linux-arm64.tar.gz` | Linux, arm64 |
+| `rvzsharp_v1.3.0_osx-x64.zip` | macOS, Intel |
+| `rvzsharp_v1.3.0_osx-arm64.dmg` | macOS, Apple Silicon |
+
+Each archive contains `RVZSharp` (`RVZSharp.exe` on Windows), `LICENSE`, `README.md`,
+`WhatsNew.md` and `THIRD-PARTY-NOTICES.md`. Extract Linux bundles with
+`tar -xzf rvzsharp_v1.3.0_linux-x64.tar.gz` (or `linux-arm64`), and open the Apple Silicon
+`.dmg` to copy `RVZSharp`.
+
+## Verification
+
+- Clean Release build with zero warnings on all four target frameworks.
+- **613 library tests** and **106 CLI tests** on each of `net8.0`, `net9.0`, `net10.0`
+ and `net11.0`; **301 slow/real-file tests** on each framework.
+- Package validation against the 1.0.0 baseline and an embedded SPDX 2.2 SBOM in the
+ library package.
+- DocFX API reference builds with zero warnings.
+- The packed `.NET tool` is installed from a local feed and `rvzsharp --help` is
+ smoke-tested.
+
+## NuGet
+
+- **RVZSharp 1.3.0** — `net8.0`, `net9.0`, `net10.0`, `net11.0`; XML docs and embedded PDBs.
+- **RVZSharp.Cli 1.3.0** — multi-target .NET tool (`net8.0` through `net11.0`), command
+ `rvzsharp`.
diff --git a/docs/roadmap.md b/docs/roadmap.md
index 38befde..ba4fc57 100644
--- a/docs/roadmap.md
+++ b/docs/roadmap.md
@@ -7,7 +7,7 @@
| 1 — RVZ reader | container parsing, tables, codecs, packing, Wii partition rebuild, CLI `info`/`decode` | ✅ done |
| 2 — Legacy decoders | blob abstraction + magic detection; WIA, GCZ, CISO/WBI, WBFS, TGC, NFS | ✅ done |
| 3 — RVZ writer | `RvzWriter`, encoders, junk packing, CLI `convert` | ✅ done |
-| 4 — Distribution | NuGet package (net8.0/9.0/10.0), multi-target tests, progress/cancellation API | ✅ done |
+| 4 — Distribution | NuGet package (`net8.0`–`net11.0`), tests, progress/cancellation API | ✅ done |
| 5 — Reference alignment | audit against dolphin-master + rvz-1.0.3; every finding fixed or documented | ✅ done |
| 6 — Real-world validation | 276 real-file tests (`RVZSharp.Slow.Tests`) against 90 GameCube/Wii RVZ games (No-Intro SHA-1) incl. writer round-trips — found & fixed the 2 MiB ticket-key writer bug | ✅ done |
| 7 — Writer performance | parallel group compression (`MaxThreads` / `--threads`, Dolphin's worker-pool model), `convert --verify` hash comparison | ✅ done |
@@ -16,10 +16,11 @@
| 10 — API ergonomics | Dolphin-default compression level 5, `DiscInfo` metadata API, split plain ISO (`.part0.iso`), path overloads (`RvzWriter.Write`/`RvzReader.Open`), seekable `BlobStream`, `Scrub` writer option | ✅ done |
| 11 — Robustness & performance | thread-safe `ReadAt` with a 16 MiB LRU decoded-unit cache, binary-search area lookup, ArrayPool group reads; parser caps + mutation/fuzz robustness suite; Native AOT/trimming validated (library annotated, CLI trimmed + AOT publish smoke-tested) | ✅ done |
| 12 — Formats & verification | `CisoWriter`/`WbfsWriter`/`TgcWriter` (+ `convert -f ciso\|wbfs\|tgc`); `DiscVerifier` Wii h0/h1/h2/h3 + TMD/H3 verification (`verify --partitions`); env-var real legacy-file tests + optional `dolphin-tool`/`wit`/`wwt` differential tests | ✅ done |
-| 13 — Tooling & packaging | GitHub Actions CI (build + fast tests on net8.0/9.0/10.0, coverage artifact, pack + API validation, CLI publish) and Dependabot; `PackageValidationBaselineVersion` (1.0.0) diffing the public API; SPDX SBOM embedded in the nupkg; CLI `--json`, `-` stdin/stdout and shell completions; per-tag GitHub Releases with CLI bundles + NuGet push; `docs/` mirrored to the wiki and deployed to Pages | ✅ done (1.1.0 published 2026-10-09) |
+| 13 — Tooling & packaging | GitHub Actions CI (build + fast tests on net8.0–net11.0, coverage artifact, pack + API validation, CLI publish) and Dependabot; `PackageValidationBaselineVersion` (1.0.0) diffing the public API; SPDX SBOM embedded in the nupkg; CLI `--json`, `-` stdin/stdout and shell completions; per-tag GitHub Releases with CLI bundles + NuGet push; `docs/` mirrored to the wiki and deployed to Pages | ✅ done (1.1.0 published 2026-10-09) |
| 14 — Correctness review | commit-by-commit audit before 1.1.0: retail ticket-key decryption with the Wii common key (`WiiVolume.GetTitleKey`), extract TMD/cert/H3 partition-relative offsets + H3 guard, WBFS header size/copy fixes, `convert --json` stdout hygiene, Ctrl+C exit 130, monotonic writer progress, original-exception propagation from parallel loops — each pinned by a regression test | ✅ done |
| 15 — Audit follow-up | second commit-by-commit audit: zero-group decode of all-zero partition chunks, extract path-traversal guards (`-s`/image names cannot escape `-o`), FST validation hardening, `decode -h`, help-run telemetry/update-prompt skips, stdin-spool cancellation in every command, release/wiki workflow fixes — each pinned by a regression test | ✅ done |
| 16 — Security & release 1.2.0 | hostile-input bounds across WIA/TGC/GCZ/NFS/FST, stream/table overflow checks, unsigned TGC extraction sizes, Dolphin-compatible CLI convert defaults, warning-to-bug-report pipeline, CodeQL/dependency-review/cross-platform CI, DocFX API under `/api/`, six framework-dependent 1.2.0 bundles and NuGet package | ✅ done (1.2.0) |
+| 17 — Distribution & bug fixes | multi-target `net8.0`–`net11.0`, separate `RVZSharp.Cli` .NET tool package, WinGet manifests/submission, literal quoted path arguments | ✅ done (1.3.0) |
## Supported
diff --git a/docs/security.md b/docs/security.md
index daade3f..b4ddd95 100644
--- a/docs/security.md
+++ b/docs/security.md
@@ -8,7 +8,8 @@ built into the repository.
| Version | Supported |
|---|---|
-| 1.2.x | Yes - active development |
+| 1.3.x | Yes - active development |
+| 1.2.x | Security fixes only |
| 1.1.x | Security fixes only |
| 1.0.x | Security fixes only |
| Older | No |
@@ -44,6 +45,8 @@ at the repository root.
| Dependency review on pull requests | `.github/workflows/dependency-review.yml` |
| Dependabot updates + security updates | `.github/dependabot.yml` |
| Secret scanning and push protection | GitHub repository settings |
+| Private vulnerability reporting | GitHub Security → Advisories |
+| Branch protection: required CI/CodeQL/DocFX/dependency checks, no force pushes or deletions | `master` branch protection |
| API compatibility and package validation | `RVZSharp/RVZSharp.csproj` |
| SPDX SBOM on Release builds | `Microsoft.Sbom.Targets` |
| Least-privilege CI permissions | `.github/workflows/*.yml` |
diff --git a/docs/testing.md b/docs/testing.md
index 2690580..16e3a16 100644
--- a/docs/testing.md
+++ b/docs/testing.md
@@ -3,8 +3,8 @@
The test suite is split into **three projects**, so the default run is always the fast one:
- **`RVZSharp.Tests`** — **613 synthetic tests** (unit + end-to-end round trips), ~1
- minute per framework (`net8.0`, `net9.0`, `net10.0`). It is part of the solution.
-- **`RVZSharp.Cli.Tests`** — **97 tests** (net10.0) for the CLI: option parsing, extract path
+ minute per framework (`net8.0`, `net9.0`, `net10.0`, `net11.0`). It is part of the solution.
+- **`RVZSharp.Cli.Tests`** — **106 tests** (net8.0–net11.0) for the CLI: option parsing, extract path
guards, shell-completion scripts, the update checker (release tags, HTTP responses and
`RVZSHARP_NO_UPDATE_CHECK`), ApplicationStats telemetry, the Serilog bug-report sink and
the required bug-report environment/error/exception layout. Part of the solution.
@@ -17,7 +17,7 @@ Throughput measurements live in **`RVZSharp.Benchmarks`** (BenchmarkDotNet; see
[Benchmarks](#benchmarks) below).
```bash
-# fast suite (default; runs per target framework of the solution)
+# fast suite (default)
dotnet test CSharp_RVZSharp.sln -c Release
# a single class
@@ -26,7 +26,7 @@ dotnet test CSharp_RVZSharp.sln -c Release --filter "FullyQualifiedName~RvzWrite
# slow / real-file suite (explicit opt-in; not part of the solution)
dotnet test RVZSharp.Slow.Tests -c Release
-# a single framework (either project)
+# a single framework
dotnet test RVZSharp.Slow.Tests -c Release --framework net8.0
```
@@ -56,10 +56,11 @@ byte-for-byte against their official No-Intro SHA-1s:
6. **Concurrency** (`ConcurrentReadTests`): parallel random `ReadAt` calls on GC/Wii
containers (mixed with `ReadFully`) must match the reference ISO byte-for-byte.
7. **Continuous integration** (`.github/workflows/ci.yml`): builds the solution and runs the
- fast suite on `net8.0`/`net9.0`/`net10.0` with coverage uploaded as an artifact, repeats
- the net10.0 build/tests on Windows and macOS, builds the DocFX API reference, packs the
- library (API-compat against 1.0.0 + embedded SBOM) and publishes a smoke-tested
- framework-dependent single-file CLI. CodeQL, dependency review, the wiki and Pages
+ fast suite on `net8.0`, `net9.0`, `net10.0` and `net11.0` with coverage uploaded as an
+ artifact, repeats the net11.0 build/tests on Windows and macOS, builds the DocFX API
+ reference, packs the library and CLI tool packages (API-compat against 1.0.0 + embedded
+ SBOM for the library) and publishes a smoke-tested framework-dependent single-file CLI.
+ CodeQL, dependency review, the wiki and Pages
deployments run in their own workflows; the slow suite and differential tests stay opt-in
on developer machines.
8. **1.1.0 correctness review**: a commit-by-commit audit pinned the fixes below with
@@ -197,7 +198,7 @@ All of them no-op when the tool or the ISO is unset.
## Benchmarks
-`RVZSharp.Benchmarks` (BenchmarkDotNet, net10.0) measures encode and decode throughput on a
+`RVZSharp.Benchmarks` (BenchmarkDotNet, net11.0) measures encode and decode throughput on a
16 MiB synthetic GameCube image (half random data, a quarter zeroes):
| Class | What it measures |
diff --git a/docs/usage-cli.md b/docs/usage-cli.md
index 5971e58..7747d2a 100644
--- a/docs/usage-cli.md
+++ b/docs/usage-cli.md
@@ -17,9 +17,24 @@ rvzsharp decode [--sha1 ] [--threads ] (decode any blob
A FILE argument of `-` reads the disc image from stdin (`convert`, `header`, `verify`,
`extract`, `info`, `decode`); `convert -o -` and `decode -` write the image to stdout.
+Arguments may also arrive with literal surrounding quotes from a script or process launcher;
+the CLI strips one matching pair, so `"C:\path\game.rvz"` and `C:\path\game.rvz` both work.
Help works per command (`rvzsharp convert -h` prints the command's usage and exits 0).
-Run the CLI with:
+Install the CLI as a .NET tool:
+
+```bash
+dotnet tool install -g RVZSharp.Cli --version 1.3.0
+rvzsharp --help
+```
+
+On Windows, WinGet installs the release bundle and the .NET 11 runtime:
+
+```powershell
+winget install PureLogicCode.RVZSharp
+```
+
+Or run the CLI from source:
```bash
dotnet run --project RVZSharp.Cli -c Release -- [args…]
@@ -333,8 +348,8 @@ command runs. When a newer version exists and the console is interactive, the co
finishes with a notice and a prompt to open the release page:
```
-A new version of RVZSharp.Cli is available: v1.2.0 (you have 1.1.1).
-Release page: https://github.com/purelogiccode/RVZSharp/releases/tag/v1.2.0
+A new version of RVZSharp.Cli is available: v1.3.0 (you have 1.2.0).
+Release page: https://github.com/purelogiccode/RVZSharp/releases/tag/v1.3.0
Open the release page in your browser? [y/N]
```
diff --git a/docs/usage-library.md b/docs/usage-library.md
index ff54834..98bf64a 100644
--- a/docs/usage-library.md
+++ b/docs/usage-library.md
@@ -1,6 +1,6 @@
# Library usage guide
-`RVZSharp` is a pure managed library (no native code) for **.NET 8, .NET 9 and .NET 10**.
+`RVZSharp` is a pure managed library (no native code) for **.NET 8, 9, 10 and 11** (C# 15).
It reads and writes Dolphin **RVZ** and **WIA** disc images, writes the legacy **GCZ** format,
reads the remaining legacy GameCube/Wii formats (**CISO/WBI, WBFS, TGC, NFS**), and exposes
every format through one interface that serves the original disc bytes.
@@ -724,8 +724,9 @@ foreach (var partition in WiiVolume.GetPartitions(blob))
## Compatibility notes
-- Target frameworks: `net8.0`, `net9.0`, `net10.0` — the same assembly API on all three
- (enforced by `EnablePackageValidation` at pack time).
+- Target frameworks: `net8.0`, `net9.0`, `net10.0` and `net11.0` (C# 15); the package
+ ships the same assembly API on all four and is validated at pack time by
+ `EnablePackageValidation`.
- Dependencies: `LZMA-SDK` (encoding), `SharpZipLib` (BZip2), `ZstdSharp.Port`
(Zstandard) — all pure managed, all netstandard-compatible.
- The RVZ/WIA container logic is derived from Dolphin; the library is
diff --git a/docs/whats-new.md b/docs/whats-new.md
index 7d1e099..274cba8 100644
--- a/docs/whats-new.md
+++ b/docs/whats-new.md
@@ -1,11 +1,31 @@
# What's new
Release highlights, newest first. The full announcements are in
+[Release notes 1.3.0](release-notes-1.3.0.md),
[Release notes 1.2.0](release-notes-1.2.0.md),
[Release notes 1.1.1](release-notes-1.1.1.md),
[Release notes 1.1.0](release-notes-1.1.0.md) and
[Release notes 1.0.0](release-notes-1.0.0.md).
+## 1.3.0 (2026-11-27)
+
+A distribution and compatibility release. The public API stays compatible with 1.0.0.
+
+- **.NET 8 through .NET 11** - library, CLI and tests target `net8.0`/`net9.0`/`net10.0`/
+ `net11.0` with C# 15; benchmarks target `net11.0`.
+- **Two NuGet packages** - `RVZSharp` (library) and the new multi-target `RVZSharp.Cli`
+ .NET tool package (`rvzsharp` command).
+- **WinGet** - Windows CLI releases are published as `PureLogicCode.RVZSharp`.
+- **Release archives** - Linux bundles are `.tar.gz`, Apple Silicon macOS bundles are
+ `.dmg`, and Windows/macOS Intel bundles remain `.zip`.
+- **Quoted paths fixed** - literal surrounding quotes are stripped from CLI arguments and
+ file-open errors include the path.
+- **Dependencies** - coverlet.collector 10.1.1, Meziantou.Analyzer 3.0.342,
+ Microsoft.NET.Test.Sdk 18.12.0 (CVE-2026-105544 fix), Microsoft.SourceLink.GitHub
+ 10.0.404 and ZstdSharp.Port 0.9.1.
+- **Tests** - **613 library tests** and **106 CLI tests** per framework, plus **301 slow
+ tests** per framework.
+
## 1.2.0 (2026-11-06)
A security, robustness and tooling release. The public API stays compatible with 1.0.0.
diff --git a/global.json b/global.json
index 9a523dc..8a991ef 100644
--- a/global.json
+++ b/global.json
@@ -1,6 +1,6 @@
{
"sdk": {
- "version": "10.0.0",
+ "version": "11.0.100",
"rollForward": "latestMajor",
"allowPrerelease": false
}
diff --git a/scripts/Generate-WingetManifests.ps1 b/scripts/Generate-WingetManifests.ps1
new file mode 100644
index 0000000..c920d53
--- /dev/null
+++ b/scripts/Generate-WingetManifests.ps1
@@ -0,0 +1,146 @@
+#Requires -Version 7.0
+<#
+.SYNOPSIS
+ Generates the WinGet manifests for the Windows RVZSharp CLI release bundles.
+
+.DESCRIPTION
+ Reads the win-x64 and win-arm64 release zips, computes their SHA-256 hashes and writes
+ a complete set of WinGet manifests (version, installer and en-US locale). The generated
+ directory can be submitted with `wingetcreate submit --path ` or attached to
+ the GitHub release for manual submission.
+
+.PARAMETER Version
+ The release version without the leading `v` (for example 1.2.0).
+
+.PARAMETER ReleaseTag
+ The GitHub release tag (for example v1.2.0).
+
+.PARAMETER InputDirectory
+ Directory containing rvzsharp_v_win-x64.zip and the win-arm64 zip.
+
+.PARAMETER OutputDirectory
+ Directory where the three manifest YAML files are written.
+#>
+[CmdletBinding()]
+param(
+ [Parameter(Mandatory = $true)]
+ [string] $Version,
+
+ [Parameter(Mandatory = $true)]
+ [string] $ReleaseTag,
+
+ [Parameter(Mandatory = $true)]
+ [string] $InputDirectory,
+
+ [Parameter(Mandatory = $true)]
+ [string] $OutputDirectory
+)
+
+Set-StrictMode -Version Latest
+$ErrorActionPreference = 'Stop'
+
+$packageIdentifier = 'PureLogicCode.RVZSharp'
+$manifestVersion = '1.10.0'
+$repository = 'purelogiccode/RVZSharp'
+$releaseUrl = "https://github.com/$repository/releases/download/$ReleaseTag"
+
+$installers = @(
+ [pscustomobject]@{ Rid = 'win-x64'; Architecture = 'x64' },
+ [pscustomobject]@{ Rid = 'win-arm64'; Architecture = 'arm64' }
+)
+
+$installerBlocks = foreach ($installer in $installers) {
+ $zipName = "rvzsharp_v${Version}_$($installer.Rid).zip"
+ $zipPath = Join-Path $InputDirectory $zipName
+ if (-not (Test-Path -LiteralPath $zipPath -PathType Leaf)) {
+ throw "Missing WinGet installer: $zipPath"
+ }
+
+ $hash = (Get-FileHash -LiteralPath $zipPath -Algorithm SHA256).Hash.ToLowerInvariant()
+ @"
+- Architecture: $($installer.Architecture)
+ InstallerUrl: $releaseUrl/$zipName
+ InstallerSha256: $hash
+"@
+}
+
+New-Item -ItemType Directory -Path $OutputDirectory -Force | Out-Null
+
+$versionManifest = @"
+# yaml-language-server: `$schema=https://aka.ms/winget-manifest.version.$manifestVersion.schema.json
+# Generated by scripts/Generate-WingetManifests.ps1. Do not edit.
+PackageIdentifier: $packageIdentifier
+PackageVersion: $Version
+DefaultLocale: en-US
+ManifestType: version
+ManifestVersion: $manifestVersion
+"@
+
+$installerManifest = @"
+# yaml-language-server: `$schema=https://aka.ms/winget-manifest.installer.$manifestVersion.schema.json
+# Generated by scripts/Generate-WingetManifests.ps1. Do not edit.
+PackageIdentifier: $packageIdentifier
+PackageVersion: $Version
+InstallerType: zip
+NestedInstallerType: portable
+NestedInstallerFiles:
+- RelativeFilePath: RVZSharp.exe
+ PortableCommandAlias: rvzsharp
+Installers:
+$($installerBlocks -join "`n")
+Dependencies:
+ PackageDependencies:
+ - PackageIdentifier: Microsoft.DotNet.Runtime.11
+ MinimumVersion: 11.0.0
+ManifestType: installer
+ManifestVersion: $manifestVersion
+"@
+
+$localeManifest = @"
+# yaml-language-server: `$schema=https://aka.ms/winget-manifest.defaultLocale.$manifestVersion.schema.json
+# Generated by scripts/Generate-WingetManifests.ps1. Do not edit.
+PackageIdentifier: $packageIdentifier
+PackageVersion: $Version
+PackageLocale: en-US
+Publisher: Pure Logic Code
+PublisherUrl: https://github.com/$repository
+PublisherSupportUrl: https://github.com/$repository/issues
+PackageName: RVZSharp
+PackageUrl: https://github.com/$repository
+License: GPL-2.0-or-later
+LicenseUrl: https://github.com/$repository/blob/master/LICENSE
+Copyright: Copyright (c) Peterson Fernandes
+ShortDescription: Convert, inspect, verify and extract GameCube/Wii disc images.
+Description: >-
+ Pure managed command-line tool for Dolphin RVZ/WIA, GCZ, CISO/WBI, WBFS, TGC, NFS and
+ ISO disc images. Converts, inspects, verifies and extracts GameCube and Wii discs.
+Moniker: rvzsharp
+Tags:
+- gamecube
+- wii
+- rvz
+- wia
+- gcz
+- ciso
+- wbfs
+- iso
+- disc-image
+- dolphin
+- cli
+ReleaseNotesUrl: https://github.com/$repository/releases/tag/$ReleaseTag
+ManifestType: defaultLocale
+ManifestVersion: $manifestVersion
+"@
+
+$utf8 = [System.Text.UTF8Encoding]::new($false)
+$files = [ordered]@{
+ "$packageIdentifier.yaml" = $versionManifest
+ "$packageIdentifier.installer.yaml" = $installerManifest
+ "$packageIdentifier.locale.en-US.yaml" = $localeManifest
+}
+
+foreach ($entry in $files.GetEnumerator()) {
+ $path = Join-Path $OutputDirectory $entry.Key
+ [System.IO.File]::WriteAllText($path, $entry.Value + "`n", $utf8)
+ Write-Output "Wrote $path"
+}