feat: adopt the template's branding toolkit
Replaces the single check-branding.sh with the four-file toolkit from
musiikki/nih-plug-template, moved under tools/ alongside where the deploy
scripts will eventually live.
The two scripts are byte-identical to the template's; everything specific
to this plugin lives in tools/branding.conf and tools/branding-sites.tsv.
That is the point of the split: syncing an improvement is now a file copy
rather than a shell merge, which is what the last two syncs had become.
This repo's data differs from the template's in ways that exercise the
design rather than fight it: params live in src/params.rs rather than
src/lib.rs, deploy.ps1 exists so its three rows check instead of skip, and
the CI bundle command carries no --features flag because VST3 is always on
here. All of that is table data now, not forked shell.
Nothing needed overriding: PKG, STRUCT and PARAMS_STRUCT all derive
correctly from PLUGIN_NAME ("Bari 206" -> bari_206 / Bari206 /
Bari206Params). AUTHOR is pinned because this plugin separates the person
who wrote it from the organisation that vends it — a distinction the
template could not express until integrating here surfaced it.
Adopting it required two upstream fixes, both made in the template first
so the scripts stay identical: cargo AUTHOR as a value distinct from
Plugin::VENDOR, and site patterns narrowed to the smallest distinctive
fragment after this repo's rustfmt-wrapped CLAP_DESCRIPTION proved a
statement-spanning pattern cannot match correctly formatted source.
CI is repointed at tools/check-branding.sh, and its path filter widened to
tools/** — the old filter named a file that no longer exists, so a change
to the toolkit would have triggered no CI at all.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WHt4DykxXaQnyaJfyS8KCn
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
req pkg.cargo Cargo.toml name = "bari_206"
|
||||
req pkg.bundler bundler.toml [bari_206]
|
||||
opt pkg.lock Cargo.lock name = "bari_206"
|
||||
opt pkg.ci .github/workflows/ci.yaml cargo xtask bundle bari_206
|
||||
opt pkg.readme README.md cargo xtask bundle bari_206
|
||||
req display.bundler bundler.toml name = "Bari 206"
|
||||
opt display.notice NOTICE Bari 206
|
||||
req name.plugin src/lib.rs const NAME: &'static str = "Bari 206"
|
||||
req vendor.plugin src/lib.rs const VENDOR: &'static str = "Novoyuuparosk"
|
||||
req email.plugin src/lib.rs const EMAIL: &'static str = "mikkeli@novoyuuparosk.org"
|
||||
req authors.cargo Cargo.toml authors = ["Mikkeli Matlock <mikkeli@novoyuuparosk.org>"]
|
||||
req homepage.cargo Cargo.toml homepage = "https://github.com/mikkeli/codename-206"
|
||||
req url.plugin src/lib.rs const URL: &'static str = env!("CARGO_PKG_HOMEPAGE")
|
||||
req description.cargo Cargo.toml description = "A VST3/CLAP multiband compressor/limiter with a custom gain-curve display"
|
||||
req description.clap src/lib.rs Some("Multiband compressor/limiter (stage 3: 3-band + 'All' channel)")
|
||||
req clapid.plugin src/lib.rs const CLAP_ID: &'static str = "org.novoyuuparosk.bari-206"
|
||||
req vst3id.plugin src/lib.rs const VST3_CLASS_ID: [u8; 16] = *b"Bari206Multiband"
|
||||
req struct.def src/lib.rs struct Bari206 {
|
||||
req struct.plugin src/lib.rs impl Plugin for Bari206 {
|
||||
req struct.clap src/lib.rs impl ClapPlugin for Bari206 {
|
||||
req struct.vst3 src/lib.rs impl Vst3Plugin for Bari206 {
|
||||
req struct.exportclap src/lib.rs nih_export_clap!(Bari206);
|
||||
req struct.exportvst3 src/lib.rs nih_export_vst3!(Bari206);
|
||||
req params.def src/params.rs struct Bari206Params {
|
||||
req params.default src/params.rs impl Default for Bari206Params {
|
||||
req params.field src/lib.rs params: Arc<Bari206Params>,
|
||||
opt deploy.pkg deploy.ps1 $Package = "bari_206"
|
||||
opt deploy.vst3 deploy.ps1 $vst3Name = "Bari 206.vst3"
|
||||
opt deploy.clap deploy.ps1 $clapName = "Bari 206.clap"
|
||||
|
Can't render this file because it contains an unexpected character in line 1 and column 33.
|
Reference in New Issue
Block a user