mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-27 07:14:18 +08:00
Use pkgar crate instead of command to generate appstream.pkgar
This commit is contained in:
parent
85efc0eeaa
commit
b4f8600997
@ -123,17 +123,11 @@ fn publish_packages(recipe_list: Vec<String>, repo_dir: String) -> anyhow::Resul
|
||||
.then_some(())
|
||||
.ok_or(anyhow!("appstreamcli failed"))?;
|
||||
|
||||
Command::new("pkgar")
|
||||
.arg("create")
|
||||
.arg("--archive")
|
||||
.arg(&appstream_pkg)
|
||||
.arg("--skey")
|
||||
.arg(format!("{}/build/id_ed25519.toml", root))
|
||||
.arg(&appstream_root)
|
||||
.status()?
|
||||
.success()
|
||||
.then_some(())
|
||||
.ok_or(anyhow!("pkgar create failed"))?;
|
||||
pkgar::create(
|
||||
format!("{}/build/id_ed25519.toml", root),
|
||||
&appstream_pkg,
|
||||
&appstream_root
|
||||
)?;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user