mirror of
https://github.com/sudoxnym/brands.git
synced 2026-05-17 02:58:51 +00:00
Create domains.json (#2536)
This commit is contained in:
parent
de6f767261
commit
8609fca925
2 changed files with 8 additions and 0 deletions
|
|
@ -12,6 +12,11 @@
|
|||
[headers.values]
|
||||
Cache-Control = "public, max-age: 900, s-maxage=604800, must-revalidate"
|
||||
|
||||
[[headers]]
|
||||
for = "/domains.json"
|
||||
[headers.values]
|
||||
Cache-Control = "public, max-age: 900, s-maxage=604800, must-revalidate"
|
||||
|
||||
[[redirects]]
|
||||
from = "/"
|
||||
to = "https://github.com/home-assistant/brands"
|
||||
|
|
|
|||
|
|
@ -37,3 +37,6 @@ find ./build -type f -name "logo.png" | while read logo; do
|
|||
echo "Using ${logo} as hDPI logo"
|
||||
fi
|
||||
done
|
||||
|
||||
# Create domains.json
|
||||
find ./build -maxdepth 1 -type d -exec basename {} \; | sort | jq -sR 'split("\n")[1:]' | jq 'map(select(length > 0))' > ./build/domains.json
|
||||
|
|
|
|||
Loading…
Reference in a new issue