From afd95e3d5cd46ba716a6365a5de611b6f7f0fadf Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Fri, 14 Jul 2023 21:44:06 +0530 Subject: [PATCH] fix(generic): add alternate binary name for spicetify (#486) --- src/steps/generic.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/steps/generic.rs b/src/steps/generic.rs index 56c4e060..02e7480a 100644 --- a/src/steps/generic.rs +++ b/src/steps/generic.rs @@ -720,7 +720,8 @@ pub fn bin_update(ctx: &ExecutionContext) -> Result<()> { } pub fn spicetify_upgrade(ctx: &ExecutionContext) -> Result<()> { - let spicetify = require("spicetify")?; + // As of 04-07-2023 NixOS packages Spicetify with the `spicetify-cli` binary name + let spicetify = require("spicetify").or(require("spicetify-cli"))?; print_separator("Spicetify"); ctx.run_type().execute(spicetify).arg("upgrade").status_checked()