Skip to content

Commit

Permalink
fix(tool): Create missing directories when generating assets
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <kate@provokateurin.de>
  • Loading branch information
provokateurin committed Oct 29, 2024
1 parent 7cffea0 commit 348fd46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tool/generate-assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ function generate_android_icon_dpi() {
name="$3"
dpi="$4"
inkscape "$source" -o "android/app/src/main/res/mipmap-${dpi}dpi/$name.png" -w "$size" -h "$size" --actions="export-background:$color"
mkdir -p "android/app/src/main/res/drawable-${dpi}dpi"
inkscape "$source" -o "android/app/src/main/res/drawable-${dpi}dpi/${name}_outline.png" -w "$size" -h "$size"
}

function generate_android_adaptive_icon() {
icon="$1"
mkdir -p "android/app/src/main/res/mipmap-anydpi-v26"
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>
<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">
<background android:drawable=\"@drawable/background_gradient\"/>
Expand Down

0 comments on commit 348fd46

Please sign in to comment.