Skip to content
This repository has been archived by the owner on Dec 28, 2018. It is now read-only.

Commit

Permalink
Calculate $BASE_DIR and prepend to accomodate new directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel da Silva committed May 31, 2014
1 parent c50f9ff commit eef7505
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 2 deletions.
Binary file modified app/res/drawable-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/res/drawable-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/res/drawable-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/res/drawable-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions tools/install_artwork.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This script is for converting to the artwork/icon.xcf file to a PNG and
# resizing it to the various dimensions for res/drawable-$cat/ic_launcher.png.

readonly BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/.."


check_deps() {
if [ ! $(which xcf2png) ]; then
Expand Down Expand Up @@ -32,14 +34,14 @@ do_resize() {
local icon_png=$3
local cat=$4

local out_png="res/drawable-$cat/ic_launcher.png"
local out_png="$BASE_DIR/app/res/drawable-$cat/ic_launcher.png"

convert -resize ${width}x${height} $icon_png $out_png
}


main() {
local icon_xcf="artwork/icon.xcf"
local icon_xcf="$BASE_DIR/artwork/icon.xcf"
local icon_png="/tmp/sd_icon.png"

check_deps
Expand Down

0 comments on commit eef7505

Please sign in to comment.