Build UI artifacts (#4824)

* Flag/env var for stash UI location
* Include UI in build artifacts
This commit is contained in:
WithoutPants
2024-05-14 12:02:29 +10:00
committed by GitHub
parent 237a904ca4
commit 408d6fc988
6 changed files with 90 additions and 29 deletions

View File

@@ -159,7 +159,10 @@ const (
// UI directory. Overrides to serve the UI from a specific location
// rather than use the embedded UI.
CustomUILocation = "custom_ui_location"
UILocation = "ui_location"
// backwards compatible name
LegacyCustomUILocation = "custom_ui_location"
// Gallery Cover Regex
GalleryCoverRegex = "gallery_cover_regex"
@@ -1057,8 +1060,12 @@ func (i *Config) GetCustomServedFolders() utils.URLMap {
return i.getStringMapString(CustomServedFolders)
}
func (i *Config) GetCustomUILocation() string {
return i.getString(CustomUILocation)
func (i *Config) GetUILocation() string {
if ret := i.getString(UILocation); ret != "" {
return ret
}
return i.getString(LegacyCustomUILocation)
}
// Interface options