Added Protonup support
This commit is contained in:
@@ -118,6 +118,7 @@ pub enum Step {
|
|||||||
Pkg,
|
Pkg,
|
||||||
Pkgin,
|
Pkgin,
|
||||||
Powershell,
|
Powershell,
|
||||||
|
Protonup,
|
||||||
Raco,
|
Raco,
|
||||||
Remotes,
|
Remotes,
|
||||||
Restarts,
|
Restarts,
|
||||||
|
|||||||
@@ -367,6 +367,7 @@ fn run() -> Result<()> {
|
|||||||
runner.execute(Step::Snap, "snap", || linux::run_snap(sudo.as_ref(), run_type))?;
|
runner.execute(Step::Snap, "snap", || linux::run_snap(sudo.as_ref(), run_type))?;
|
||||||
runner.execute(Step::Pacstall, "pacstall", || linux::run_pacstall(&ctx))?;
|
runner.execute(Step::Pacstall, "pacstall", || linux::run_pacstall(&ctx))?;
|
||||||
runner.execute(Step::Pacdef, "pacdef", || linux::run_pacdef(&ctx))?;
|
runner.execute(Step::Pacdef, "pacdef", || linux::run_pacdef(&ctx))?;
|
||||||
|
runner.execute(Step::Protonup, "protonup", || linux::run_protonup_update(&ctx))?;
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(commands) = config.commands() {
|
if let Some(commands) = config.commands() {
|
||||||
|
|||||||
@@ -574,6 +574,10 @@ pub fn run_pihole_update(sudo: Option<&PathBuf>, run_type: RunType) -> Result<()
|
|||||||
run_type.execute(sudo).arg(pihole).arg("-up").check_run()
|
run_type.execute(sudo).arg(pihole).arg("-up").check_run()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn run_protonup_update(ctx: &ExecutionContext) -> Result<()> {
|
||||||
|
todo!();
|
||||||
|
}
|
||||||
|
|
||||||
pub fn run_config_update(ctx: &ExecutionContext) -> Result<()> {
|
pub fn run_config_update(ctx: &ExecutionContext) -> Result<()> {
|
||||||
let sudo = require_option(ctx.sudo().as_ref(), String::from("sudo is not installed"))?;
|
let sudo = require_option(ctx.sudo().as_ref(), String::from("sudo is not installed"))?;
|
||||||
if ctx.config().yes(Step::ConfigUpdate) {
|
if ctx.config().yes(Step::ConfigUpdate) {
|
||||||
|
|||||||
Reference in New Issue
Block a user