Skip to content

Commit

Permalink
Add an icon.
Browse files Browse the repository at this point in the history
  • Loading branch information
mansourmoufid committed Sep 2, 2019
1 parent af4f578 commit b75caac
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,15 @@ lib/libnu.so: android-env.sh build-nu.sh
.PHONY: love
love: chirpy.love

.PHONY: icon
icon:
for x in mdpi hdpi xhdpi xxhdpi xxxhdpi; do \
cp icon/chirpy-$$x.png \
chirpy-android/app/src/main/res/drawable-$$x/chirpy.png; \
done

.PHONY: apk
apk: $(SO)
apk: $(SO) icon
MOBILE=true $(MAKE) chirpy.love
mkdir -p chirpy-android/app/src/main/jniLibs/armeabi-v7a
cp lib/*.so chirpy-android/app/src/main/jniLibs/armeabi-v7a/
Expand Down Expand Up @@ -60,6 +67,9 @@ cleanup:
clean: cleanup
rm -f chirpy.love
rm -f $(SO)
for x in mdpi hdpi xhdpi xxhdpi xxxhdpi; do \
rm -f chirpy-android/app/src/main/res/drawable-$$x/chirpy.png; \
done
for so in lib/*.so; do \
rm -f chirpy-android/app/src/main/jniLibs/armeabi-v7a/$$so; \
done
Expand Down
2 changes: 1 addition & 1 deletion chirpy-android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

<application
android:allowBackup="true"
android:icon="@drawable/love"
android:icon="@drawable/chirpy"
android:label="Chirpy"
android:theme="@style/ChirpyTheme" >
<activity
Expand Down
Binary file added icon/chirpy-hdpi.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 added icon/chirpy-mdpi.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 added icon/chirpy-xhdpi.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 added icon/chirpy-xxhdpi.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 added icon/chirpy-xxxhdpi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b75caac

Please sign in to comment.