fix: cub production recipe, serde_derive import, minor cleanup

- recipe: use cargo install for proper binary installation
- aur.rs: serde_derive for explicit derive path
- main.rs: final noconfirm/force flow cleanup
This commit is contained in:
2026-05-08 11:58:36 +01:00
parent 5c90afdad8
commit 261a6c26b3
4 changed files with 40 additions and 7 deletions
@@ -65,11 +65,31 @@ impl PackageCreator {
output_path: &Path,
secret_key_path: &Path,
) -> Result<(), CubError> {
cub::package::PackageCreator::create_from_stage(stage_dir, output_path, secret_key_path)
#[cfg(feature = "full")]
{
cub::package::PackageCreator::create_from_stage(stage_dir, output_path, secret_key_path)
}
#[cfg(not(feature = "full"))]
{
let _ = (stage_dir, output_path, secret_key_path);
Err(CubError::PackageNotFound(
"pkgar creation support is disabled in this build".into(),
))
}
}
fn generate_package_toml(rbpkg: &RbPkgBuild) -> String {
cub::package::PackageCreator::generate_package_toml(rbpkg)
#[cfg(feature = "full")]
{
cub::package::PackageCreator::generate_package_toml(rbpkg)
}
#[cfg(not(feature = "full"))]
{
let _ = rbpkg;
String::new()
}
}
}