diff --git a/src/config.rs b/src/config.rs index 87e11c1b..7bc48762 100644 --- a/src/config.rs +++ b/src/config.rs @@ -116,6 +116,7 @@ pub enum Step { Sheldon, Shell, Snap, + Spicetify, Stack, System, Tldr, diff --git a/src/main.rs b/src/main.rs index 6e00604b..bdc01c54 100644 --- a/src/main.rs +++ b/src/main.rs @@ -324,6 +324,7 @@ fn run() -> Result<()> { })?; runner.execute(Step::Micro, "micro", || generic::run_micro(run_type))?; runner.execute(Step::Raco, "raco", || generic::run_raco_update(run_type))?; + runner.execute(Step::Spicetify, "spicetify", || generic::spicetify_upgrade(&ctx))?; #[cfg(target_os = "linux")] { diff --git a/src/steps/generic.rs b/src/steps/generic.rs index b0b9c864..ecb63fe3 100644 --- a/src/steps/generic.rs +++ b/src/steps/generic.rs @@ -432,3 +432,10 @@ pub fn bin_update(ctx: &ExecutionContext) -> Result<()> { print_separator("Bin"); ctx.run_type().execute(&bin).arg("update").check_run() } + +pub fn spicetify_upgrade(ctx: &ExecutionContext) -> Result<()> { + let spicetify = utils::require("spicetify")?; + + print_separator("Spicetify"); + ctx.run_type().execute(&spicetify).arg("upgrade").check_run() +}