mirror of
https://github.com/storytold/effectcraft.git
synced 2026-10-14 19:27:05 -04:00
Release fixes: CLI --version, ALSA on Linux, web build via xtask, xtask version
- effectcraft-cli: support --version/-V/version (the packaging smoke tests call it). - Linux release job installs libasound2-dev for alsa-sys; deb/rpm depend on libasound2/alsa-lib; Flatpak gets --socket=pulseaudio. - packaging/web/package.sh builds with `cargo xtask web` (wasm-bindgen) and zips <target>/web/dist; the release job installs wasm-bindgen-cli 0.2.129. - xtask: version.rs (ported from PhotoCraft) called helpers that don't exist here, so xtask didn't compile; use the local run() and wire up `cargo xtask version`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
55daf36e38
commit
935cf691d1
7 files changed
+30
-19
No files matched your search
@@ -138,6 +138,10 @@ fn value_arg(s: &str) -> Value {
|
||||
|
||||
fn main() {
|
||||
let raw: Vec<String> = std::env::args().skip(1).collect();
|
||||
if matches!(raw.first().map(String::as_str), Some("--version" | "-V" | "version")) {
|
||||
println!("effectcraft-cli {}", env!("CARGO_PKG_VERSION"));
|
||||
return;
|
||||
}
|
||||
if raw.is_empty() || raw.iter().any(|a| a == "-h" || a == "--help") {
|
||||
println!("{USAGE}");
|
||||
std::process::exit(if raw.is_empty() { 2 } else { 0 });
|
||||
|
||||
Reference in new issue
Block a user