Add "Cinnamon spices" step (#1055)
* Add "Cinnamon spices" step * Format * Move step to Linux
This commit is contained in:
@@ -69,6 +69,7 @@ pub enum Step {
|
|||||||
Chezmoi,
|
Chezmoi,
|
||||||
Chocolatey,
|
Chocolatey,
|
||||||
Choosenim,
|
Choosenim,
|
||||||
|
CinnamonSpices,
|
||||||
ClamAvDb,
|
ClamAvDb,
|
||||||
Composer,
|
Composer,
|
||||||
Conda,
|
Conda,
|
||||||
|
|||||||
@@ -251,6 +251,9 @@ fn run() -> Result<()> {
|
|||||||
runner.execute(Step::Lure, "LURE", || linux::run_lure_update(&ctx))?;
|
runner.execute(Step::Lure, "LURE", || linux::run_lure_update(&ctx))?;
|
||||||
runner.execute(Step::Waydroid, "Waydroid", || linux::run_waydroid(&ctx))?;
|
runner.execute(Step::Waydroid, "Waydroid", || linux::run_waydroid(&ctx))?;
|
||||||
runner.execute(Step::AutoCpufreq, "auto-cpufreq", || linux::run_auto_cpufreq(&ctx))?;
|
runner.execute(Step::AutoCpufreq, "auto-cpufreq", || linux::run_auto_cpufreq(&ctx))?;
|
||||||
|
runner.execute(Step::CinnamonSpices, "Cinnamon spices", || {
|
||||||
|
linux::run_cinnamon_spices_updater(&ctx)
|
||||||
|
})?;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
|
|||||||
@@ -1117,6 +1117,17 @@ pub fn run_auto_cpufreq(ctx: &ExecutionContext) -> Result<()> {
|
|||||||
.status_checked()
|
.status_checked()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn run_cinnamon_spices_updater(ctx: &ExecutionContext) -> Result<()> {
|
||||||
|
let cinnamon_spice_updater = require("cinnamon-spice-updater")?;
|
||||||
|
|
||||||
|
print_separator("Cinnamon spices");
|
||||||
|
|
||||||
|
ctx.run_type()
|
||||||
|
.execute(cinnamon_spice_updater)
|
||||||
|
.arg("--update-all")
|
||||||
|
.status_checked()
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|||||||
Reference in New Issue
Block a user