Skip to content

Commit

Permalink
Update apk-thumbnailer
Browse files Browse the repository at this point in the history
I'm an idiot
  • Loading branch information
theredbaron1834 authored Apr 29, 2020
1 parent 19c905c commit 3c331be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apk-thumbnailer
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ file=$(echo "$1" | sed s'/file:\/\///g' | sed s'/%20/ /g' | sed s'/%5B/\[/g'| se
icon=$(/opt/android-sdk/build-tools/*/aapt d --values badging "$file" | grep application-icon- | sed s'/:/\n/g' | tail -n 1 | tr -d \') #Grab icon location
mkdir /tmp/apkthumbnailer/
cd /tmp/apkthumbnailer/
unzip -o "$file" "$icon # Extract icon
unzip -o "$file" "$icon" # Extract icon
convert -thumbnail 200 /tmp/apkthumbnailer/"$icon" "$2" # Make thumbnail
exit

0 comments on commit 3c331be

Please sign in to comment.