fix(generic): add alternate binary name for spicetify (#486)

This commit is contained in:
Harsh Shandilya
2023-07-14 21:44:06 +05:30
committed by GitHub
parent 8f72545894
commit afd95e3d5c

View File

@@ -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()