Added deb build
Some checks failed
Build and Publish Deb Package / build-deb (push) Has been cancelled
Publish Server Image / build-and-push-image (push) Has been cancelled

This commit is contained in:
2026-03-13 15:52:17 +00:00
parent 64f292c7b1
commit 0242376a65
3 changed files with 82 additions and 1 deletions

View File

@@ -15,3 +15,14 @@ tracing-subscriber = { version = "0.3.22", features = ["env-filter"] }
tokio = { version = "1.50.0", features = ["full"] }
tokio-stream = "0.1.18"
ctrlc = "3.5.2"
[package.metadata.deb]
maintainer = "Furumi"
copyright = "Furumi contributors"
extended-description = "Furumi-ng: mount remote filesystem via encrypted gRPC + FUSE"
depends = "fuse3"
section = "utils"
priority = "optional"
assets = [
{ source = "target/release/furumi-mount-linux", dest = "usr/bin/furumi-mount-linux", mode = "755" },
]

View File

@@ -57,7 +57,14 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
};
let client = rt.block_on(async {
FurumiClient::connect(&full_addr, &args.token).await
let c = FurumiClient::connect(&full_addr, &args.token).await?;
// Ping the server to verify connection and authentication token
if let Err(e) = c.get_attr("/").await {
return Err(format!("Failed to authenticate or connect to server: {}", e).into());
}
Ok::<_, Box<dyn std::error::Error>>(c)
})?;
let fuse_fs = fs::FurumiFuse::new(client, rt.handle().clone());