Add "Cinnamon spices" step (#1055)

* Add "Cinnamon spices" step

* Format

* Move step to Linux
This commit is contained in:
Gideon
2025-03-04 01:57:12 +01:00
committed by GitHub
parent 488ae149f7
commit b40bffb1f2
3 changed files with 15 additions and 0 deletions

View File

@@ -69,6 +69,7 @@ pub enum Step {
Chezmoi, Chezmoi,
Chocolatey, Chocolatey,
Choosenim, Choosenim,
CinnamonSpices,
ClamAvDb, ClamAvDb,
Composer, Composer,
Conda, Conda,

View File

@@ -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")]

View File

@@ -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::*;