feat: support AppMan (#423)
This commit is contained in:
@@ -73,6 +73,7 @@ type Commands = BTreeMap<String, String>;
|
|||||||
#[strum(serialize_all = "snake_case")]
|
#[strum(serialize_all = "snake_case")]
|
||||||
pub enum Step {
|
pub enum Step {
|
||||||
AM,
|
AM,
|
||||||
|
AppMan,
|
||||||
Asdf,
|
Asdf,
|
||||||
Atom,
|
Atom,
|
||||||
Bin,
|
Bin,
|
||||||
|
|||||||
@@ -424,6 +424,7 @@ For more information about this issue see https://askubuntu.com/questions/110969
|
|||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
{
|
{
|
||||||
runner.execute(Step::AM, "am", || linux::update_am(&ctx))?;
|
runner.execute(Step::AM, "am", || linux::update_am(&ctx))?;
|
||||||
|
runner.execute(Step::AppMan, "appman", || linux::run_appman(&ctx))?;
|
||||||
runner.execute(Step::DebGet, "deb-get", || linux::run_deb_get(&ctx))?;
|
runner.execute(Step::DebGet, "deb-get", || linux::run_deb_get(&ctx))?;
|
||||||
runner.execute(Step::Toolbx, "toolbx", || toolbx::run_toolbx(&ctx))?;
|
runner.execute(Step::Toolbx, "toolbx", || toolbx::run_toolbx(&ctx))?;
|
||||||
runner.execute(Step::Flatpak, "Flatpak", || linux::flatpak_update(&ctx))?;
|
runner.execute(Step::Flatpak, "Flatpak", || linux::flatpak_update(&ctx))?;
|
||||||
|
|||||||
@@ -507,6 +507,14 @@ pub fn update_am(ctx: &ExecutionContext) -> Result<()> {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn run_appman(ctx: &ExecutionContext) -> Result<()> {
|
||||||
|
let appman = require("appman")?;
|
||||||
|
|
||||||
|
print_separator("appman");
|
||||||
|
|
||||||
|
ctx.run_type().execute(appman).arg("-u").status_checked()
|
||||||
|
}
|
||||||
|
|
||||||
pub fn run_pacdef(ctx: &ExecutionContext) -> Result<()> {
|
pub fn run_pacdef(ctx: &ExecutionContext) -> Result<()> {
|
||||||
let pacdef = require("pacdef")?;
|
let pacdef = require("pacdef")?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user