rust: packaging (Linux desktop entry, macOS bundle), cargo release script with update manifests, CI

This commit is contained in:
Andy Dixon
2026-10-11 16:53:19 +01:00
parent ea09aeafe8
commit 328507c57b
8 changed files with 294 additions and 98 deletions
+5 -1
View File
@@ -13,7 +13,11 @@ use std::path::{Path, PathBuf};
use std::sync::Arc;
use std::time::{Duration, Instant};
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
/// The release version (`NEXUS_VERSION` from release.sh, e.g. "v1.2.0-abc1234"), else the crate version.
pub const VERSION: &str = match option_env!("NEXUS_VERSION") {
Some(v) => v,
None => env!("CARGO_PKG_VERSION"),
};
const MAX_IMPORT_JSON_BYTES: usize = 5 * 1024 * 1024;
pub struct Service {