19 lines
717 B
Bash
19 lines
717 B
Bash
#!/bin/sh
|
|
# Converts the Inkscape icon file ic_launcher_web.svg to the launcher web & app png files.
|
|
|
|
PROJECT="/home/vanitas/Programmierung/androidstudio/EnigmAndroid/app"
|
|
MAIN="${PROJECT}/src/main/"
|
|
RES="${MAIN}res/"
|
|
DRAWABLE="${RES}drawable"
|
|
INPUT="${RES}icon.svg"
|
|
|
|
inkscape --shell <<COMMANDS
|
|
--export-png "${RES}ic_launcher-web.png" -w 512 "${INPUT}"
|
|
--export-png "${DRAWABLE}-mdpi/ic_launcher.png" -w 48 "${INPUT}"
|
|
--export-png "${DRAWABLE}-hdpi/ic_launcher.png" -w 72 "${INPUT}"
|
|
--export-png "${DRAWABLE}-xhdpi/ic_launcher.png" -w 96 "${INPUT}"
|
|
--export-png "${DRAWABLE}-xxhdpi/ic_launcher.png" -w 144 "${INPUT}"
|
|
--export-png "${DRAWABLE}-xxxhdpi/ic_launcher.png" -w 192 "${INPUT}"
|
|
quit
|
|
COMMANDS
|