build: add setupLocal task for local development config

This commit is contained in:
TapTap committed 2026-11-13 12:15:31 +00:00
1 parent af2a8bd35d
commit 656020f5c1
3 files changed
+56 -5

No files matched your search

@@ -37,8 +37,9 @@ data class LibraryConfig(val folders: List<MusicFolder>) {
require(Files.isDirectory(folder.path)) {
"Library folder ${folder.id} (${folder.name}) is not a directory: ${folder.path}. " +
"Create the directory or fix the path in the library config (LIBRARY_CONFIG). " +
"For local development, copy config/library.example.yaml and run " +
"`mkdir -p media/music media/longform`."
"For local development, run `./gradlew setupLocal` and copy " +
"config/library.example.yaml to config/library.yaml. That file is " +
"git-ignored, so `git pull` never updates it."
}
require(Files.isReadable(folder.path)) {
"Library folder ${folder.id} (${folder.name}) is not readable: ${folder.path}. " +