diff --git a/tool/generate-assets.sh b/tool/generate-assets.sh index ad36ee02a7d..164b7c56ba0 100755 --- a/tool/generate-assets.sh +++ b/tool/generate-assets.sh @@ -28,9 +28,8 @@ function export_icon() { size="$2" 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" & - inkscape "$source" -o "android/app/src/main/res/drawable-${dpi}dpi/${name}.png" -w "$size" -h "$size" & - wait + inkscape "$source" -o "android/app/src/main/res/mipmap-${dpi}dpi/$name.png" -w "$size" -h "$size" --actions="export-background:$color" + inkscape "$source" -o "android/app/src/main/res/drawable-${dpi}dpi/${name}.png" -w "$size" -h "$size" } function generate_adaptive_icon() { @@ -50,13 +49,12 @@ function generate_adaptive_icon() { function export_icon_all() { source="$1" name="$2" - export_icon "$source" 72 "$name" h & - export_icon "$source" 48 "$name" m & - export_icon "$source" 96 "$name" xh & - export_icon "$source" 144 "$name" xxh & - export_icon "$source" 192 "$name" xxxh & - generate_adaptive_icon "$name" & - wait + export_icon "$source" 72 "$name" h + export_icon "$source" 48 "$name" m + export_icon "$source" 96 "$name" xh + export_icon "$source" 144 "$name" xxh + export_icon "$source" 192 "$name" xxxh + generate_adaptive_icon "$name" } function precompile_assets() { @@ -112,9 +110,8 @@ copy_app_svg talk external/nextcloud-spreed for path in ../packages/*_app; do icon="$(basename "$path")" - export_icon_all "$path/assets/app.svg" "$icon" & + export_icon_all "$path/assets/app.svg" "$icon" done - wait fvm dart run flutter_native_splash:create fvm dart run sqflite_common_ffi_web:setup --force