mirror of
https://github.com/vanitasvitae/EnigmAndroid.git
synced 2024-12-22 10:57:59 +01: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
|
@ -10,8 +10,10 @@ v1.0.0-not-yet-released<
|
|||
*Same for receiving
|
||||
*Added TextBox to configuration-share-dialog that lets the user see and copy the configuration string.
|
||||
*Added Whats-new-Dialog
|
||||
*TODO: Move KD right below K?
|
||||
*TODO: Add intent filters to recognize and automatically handle shared/copied configuration Strings
|
||||
*New Icon!
|
||||
*Added Script to automatically generate icons
|
||||
*TODO?: Move KD right below K
|
||||
*TODO?: Add intent filters to recognize and automatically handle shared/copied configuration Strings
|
||||
TODO: These are Strings starting with "EnigmAndroid/"
|
||||
*TODO: Write tests to ensure correct functionality (Pull Requests welcome)
|
||||
*TODO: Add multi-Enigma (select any rotor/reflector etc. Probably wont happen too soon)
|
||||
|
|
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…
Reference in a new issue