Add Support for Spicetify (#798)

This commit is contained in:
M*C*O
2021-11-15 07:09:02 +01:00
committed by GitHub
parent f70305adcb
commit 329df4f406
3 changed files with 9 additions and 0 deletions

View File

@@ -116,6 +116,7 @@ pub enum Step {
Sheldon, Sheldon,
Shell, Shell,
Snap, Snap,
Spicetify,
Stack, Stack,
System, System,
Tldr, Tldr,

View File

@@ -324,6 +324,7 @@ fn run() -> Result<()> {
})?; })?;
runner.execute(Step::Micro, "micro", || generic::run_micro(run_type))?; runner.execute(Step::Micro, "micro", || generic::run_micro(run_type))?;
runner.execute(Step::Raco, "raco", || generic::run_raco_update(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")] #[cfg(target_os = "linux")]
{ {

View File

@@ -432,3 +432,10 @@ pub fn bin_update(ctx: &ExecutionContext) -> Result<()> {
print_separator("Bin"); print_separator("Bin");
ctx.run_type().execute(&bin).arg("update").check_run() 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()
}