mirror of
https://github.com/sudoxnym/brands.git
synced 2026-05-17 02:58:51 +00:00
Add fallback for dark hardware image (#3504)
This commit is contained in:
parent
e3d21c0f3e
commit
8efbe49ef5
1 changed files with 10 additions and 0 deletions
|
|
@ -18,6 +18,16 @@ rsync -aL --exclude '_homeassistant' --exclude '_placeholder' core_integrations/
|
|||
# Copy hardware
|
||||
rsync -aL hardware/ build/hardware
|
||||
|
||||
# Create fallback for dark hardware variants
|
||||
find ./build/hardware -type f -name "*.png" | while read image; do
|
||||
dir=$(dirname "${image}")
|
||||
filename=$(basename -s .png "${image}")
|
||||
if [[ ! -f "${dir}/dark_${filename}.png" ]]; then
|
||||
cp "${image}" "${dir}/dark_${filename}.png"
|
||||
echo "Using ${image} as dark_${filename}"
|
||||
fi
|
||||
done
|
||||
|
||||
# Generate icons based on MDI
|
||||
find ./build -type f -name "icon.txt" | while read icon; do
|
||||
dir=$(dirname "${icon}")
|
||||
|
|
|
|||
Loading…
Reference in a new issue