mirror of
https://github.com/vanitasvitae/EnigmAndroid.git
synced 2025-09-10 10:49:40 +02:00
Added Script to automatically render icon in all dimensions
This commit is contained in:
parent
e2052a935d
commit
dbfb1d5d79
2 changed files with 22 additions and 2 deletions
18
app/src/main/res/render-icon.sh
Executable file
18
app/src/main/res/render-icon.sh
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue