You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,7 @@ Follow the steps outlined in the [documentation](https://spicetify.app/docs/deve
95
95
96
96
### Improving The Documentation
97
97
98
-
To improve the [documentation](https://spicetify.app/docs/getting-started), navigate to the documentation [repository](https://github.com/spicetify/spicetify-docs).
98
+
To improve the [documentation](https://spicetify.app/docs/getting-started), navigate to the documentation [repository](https://github.com/spicetify/docs).
utils.PrintError("Spicetify should not be run with administrator/root privileges")
119
-
utils.PrintError("Running as admin can cause Spotify to show a black/blank window after applying spicetify")
119
+
utils.PrintError("Spicetify should NOT be run with administrator or root privileges")
120
+
utils.PrintError("Doing so can cause Spotify to show a black/blank window after applying!")
120
121
utils.PrintError("This happens because Spotify (running as a normal user) can't access files modified with admin privileges")
121
-
utils.PrintInfo("If you understand the risks and need to continue anyway, you can use the '--bypass-admin' flag.")
122
-
utils.PrintInfo("Spicetify is now exiting...")
122
+
utils.PrintInfo("If you understand the risks and need to continue, you can use the '--bypass-admin' flag.")
123
123
os.Exit(1)
124
124
}
125
125
@@ -291,24 +291,27 @@ func main() {
291
291
292
292
spotStat:=spotifystatus.Get(spotifyPath)
293
293
ifspotStat.IsBackupable() {
294
-
utils.PrintNote("spicetify is already up-to-date! If you ran this command because spicetify disappeared after Spotify updated, we'll attempt to fix it for you right now.")
295
-
cmd.Backup(version)
294
+
utils.PrintNote("spicetify is up-to-date! If you ran this because spicetify disappeared after Spotify updated, we'll attempt to fix it for you right now.")
"Customize Spotify client UI and functionality\n\n"+
369
369
utils.Bold("CHAINABLE COMMANDS") +`
370
-
backup Start backup and preprocessing app files.
370
+
backup Start backup and preprocessing of app files.
371
371
372
372
apply Apply customization.
373
373
374
374
refresh Refresh the theme's CSS, JS, colors, and assets.
375
-
Use with flag "-e" to update extensions.
375
+
Use with flag "-e" to update extensions or with flag "-a" to update custom apps.
376
376
377
377
restore Restore Spotify to original state.
378
378
379
379
clear Clear current backup files.
380
380
381
381
enable-devtools Enable Spotify's developer tools.
382
-
Press Ctrl + Shift + I (Windows/Linux) or Cmd + Option + I (macOS) in the Spotify client to start using.
382
+
Press Ctrl + Shift + I (Windows/Linux) or Cmd + Option + I (macOS) in the Spotify client to open.
383
383
384
384
watch Enter watch mode.
385
385
To update on change, use with any combination of the following flags:
386
386
"-e" (for extensions),
387
387
"-a" (for custom apps),
388
388
"-s" (for the active theme; color.ini, user.css, theme.js, and assets)
389
-
"-l" (for extensions, custom apps, and active theme)
389
+
"-l" (for all of the above)
390
390
391
391
392
392
restart Restart Spotify client.
393
393
394
394
`+utils.Bold("NON-CHAINABLE COMMANDS") +`
395
-
spotify-updates Blocks Spotify updates. Patches spotify executable. Accepts "block" or "unblock" as parameter.
395
+
spotify-updates Block Spotify updates by patching spotify executable.
396
+
Accepts "block" or "unblock" as the parameter.
396
397
397
-
path Prints path of Spotify's executable, userdata, and more.
398
+
path Print path of Spotify's executable, userdata, and more.
398
399
1. Print executable path:
399
400
spicetify path
400
401
@@ -407,7 +408,7 @@ path Prints path of Spotify's executable, userdata, and more.
407
408
4. Toggle focus with flags:
408
409
spicetify path <flag> <option>
409
410
410
-
Available Flags and Options:
411
+
Available flags and options:
411
412
"-e" (for extensions),
412
413
options: root, extension name, blank for all.
413
414
@@ -464,36 +465,38 @@ color 1. Print all color fields and values.
464
465
- Change sidebar to 00ff00 and button to 0000ff
465
466
spicetify color sidebar 00ff00 button 0000ff
466
467
467
-
config-dir Shows config directory in file viewer
468
+
config-dir Show config directory in file viewer
468
469
469
-
upgrade|update Update spicetify latest version
470
+
upgrade|update Update spicetify to the latest version if an update is available
470
471
471
472
`+utils.Bold("FLAGS") +`
472
-
-q, --quiet Quiet mode (no output). Be careful, dangerous operations
473
-
like clear backup, restore will proceed without prompting
474
-
permission.
473
+
-q, --quiet Quiet mode (no output).
475
474
476
-
-s, --style Use with "watch" command to auto-reload Spotify when changes are made to the active theme (color.ini, user.css, theme.js, assets).
475
+
-s, --style Use with "watch" or "path" to focus on the active theme.
476
+
Use with "watch" to auto-reload Spotify when changes are made to the active theme.
477
477
478
-
-e, --extension Use with "refresh", "watch" or "path" command to
479
-
focus on extensions. Use with "watch" command to auto-reload Spotify when changes are made to extensions.
478
+
-e, --extension Use with "refresh", "watch" or "path" to focus on extensions.
479
+
Use with "watch" to auto-reload Spotify when changes are made to extensions.
480
480
481
-
-a, --app Use with "watch" or "path" to focus on custom apps. Use with "watch" command to auto-reload Spotify when changes are made to apps.
481
+
-a, --app Use with "refresh", "watch" or "path" to focus on custom apps.
482
+
Use with "watch" to auto-reload Spotify when changes are made to apps.
482
483
483
-
-n, --no-restart Do not restart Spotify after running command(s), except
484
-
"restart" command.
484
+
-l, --live-refresh Use with "watch" command to auto-reload Spotify when changes
485
+
are made to any custom component.
485
486
486
-
-l, --live-refresh Use with "watch" command to auto-reload Spotify when changes are made to any custom component (color.ini, user.css, extensions, apps).
487
+
-n, --no-restart Do not restart Spotify after running command(s),
488
+
except for the "restart" command.
489
+
490
+
--bypass-admin Bypass admin or root (sudo) check. NOT RECOMMENDED
487
491
488
492
-c, --config Print config file path and quit
489
493
490
494
-h, --help Print this help text and quit
491
495
492
496
-v, --version Print version number and quit
493
497
494
-
When using the "watch" command, any combination of the style (-s), extension (-e), and app (-a) flags can be used (ex. "watch -s -e" or "watch -e -a").
495
498
For config information, run "spicetify -h config".
496
-
For more information and bug report: https://github.com/spicetify/cli/`)
499
+
For more information and reporting bugs: https://github.com/spicetify/cli/`)
497
500
}
498
501
499
502
funchelpConfig() {
@@ -516,12 +519,12 @@ inject_css <0 | 1>
516
519
Whether custom css from user.css in theme folder is applied
517
520
518
521
inject_theme_js <0 | 1>
519
-
Whether custom js from theme.js in theme folder is applied
522
+
Whether custom js from theme.js in theme folder is applied
520
523
521
524
replace_colors <0 | 1>
522
525
Whether custom colors is applied
523
526
524
-
spotify_launch_flags
527
+
spotify_launch_flags <string>
525
528
Command-line flags used when launching/restarting Spotify.
526
529
Separate each flag with "|".
527
530
List of valid flags: https://spicetify.app/docs/development/spotify-cli-flags
utils.PrintError("Spotify version mismatch with Spicetify. Please report it on our github repository.")
278
-
utils.PrintInfo("Spicetify might have been updated for this version already. Please run `spicetify update` to check for a new version. If one isn't available yet, please wait for the update to be released.")
278
+
utils.PrintInfo("Spicetify might have been updated for this version already. Please run `spicetify update` to check for a new version.")
279
+
utils.PrintInfo("If one isn't available yet, please wait for an update to be released or downgrade Spotify to a supported version.")
0 commit comments