mirror of
https://github.com/sudoxnym/brands.git
synced 2026-04-14 19:47:34 +00:00
Require normal image when hDPI version is provided (#60)
This commit is contained in:
parent
a451e8c232
commit
ef731ee824
1 changed files with 9 additions and 0 deletions
9
.github/workflows/validate/validate.sh
vendored
9
.github/workflows/validate/validate.sh
vendored
|
|
@ -42,6 +42,15 @@ while read image; do
|
|||
[[ "${type}" != "PNG" ]] \
|
||||
&& error "${image}" "Invalid file type '${type}' for file"
|
||||
|
||||
# Ensure normal version exists when hDPI image is provided
|
||||
[[ "${filename}" == "icon@2x.png" ]] \
|
||||
&& [[ ! -f "${folderpath}/icon.png" ]] \
|
||||
&& error "${image}" "hDPI icon was provided, but the normal version is missing"
|
||||
|
||||
[[ "${filename}" == "logo@2x.png" ]] \
|
||||
&& [[ ! -f "${folderpath}/logo.png" ]] \
|
||||
&& error "${image}" "hDPI logo was provided, but the normal version is missing"
|
||||
|
||||
# Validate image dimensions
|
||||
if [[ "${filename}" == "icon.png" ]]; then
|
||||
# icon dimension
|
||||
|
|
|
|||
Loading…
Reference in a new issue