diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..7110436 --- /dev/null +++ b/build.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + + +rm -rf plateforms/android +npm run build +cordova platform add android +cordova build + +cp www/icons/mipmap-hdpi/icon.png platforms/android/res/mipmap-hdpi/icon.png +cp www/icons/mipmap-ldpi/icon.png platforms/android/res/mipmap-ldpi/icon.png +cp www/icons/mipmap-mdpi/icon.png platforms/android/res/mipmap-mdpi/icon.png +cp www/icons/mipmap-xhdpi/icon.png platforms/android/res/mipmap-xhdpi/icon.png +cp www/icons/drawable-land-hdpi/screen.png platforms/android/res/drawable-land-hdpi/screen.png +cp www/icons/drawable-land-ldpi/screen.png platforms/android/res/drawable-land-ldpi/screen.png +cp www/icons/drawable-land-mdpi/screen.png platforms/android/res/drawable-land-mdpi/screen.png +cp www/icons/drawable-land-xhdpi/screen.png platforms/android/res/drawable-land-xhdpi/screen.png +cp www/icons/drawable-port-hdpi/screen.png platforms/android/res/drawable-port-hdpi/screen.png +cp www/icons/drawable-port-ldpi/screen.png platforms/android/res/drawable-port-ldpi/screen.png +cp www/icons/drawable-port-mdpi/screen.png platforms/android/res/drawable-port-mdpi/screen.png +cp www/icons/drawable-port-xhdpi/screen.png platforms/android/res/drawable-port-xhdpi/screen.png \ No newline at end of file diff --git a/config.xml b/config.xml index 5a63350..a6be898 100644 --- a/config.xml +++ b/config.xml @@ -31,24 +31,18 @@ - - - - - - + + + + - - - - diff --git a/readme.md b/readme.md index aa52bff..e3c43a8 100644 --- a/readme.md +++ b/readme.md @@ -2,9 +2,7 @@ ## Build - npm run build - cordova platform add android - cordova build + ./build.sh ## Run diff --git a/www/icons/drawable-port-xxhdpi/screen.png b/www/icons/drawable-port-xxhdpi/screen.png deleted file mode 100644 index 9fa90fe..0000000 Binary files a/www/icons/drawable-port-xxhdpi/screen.png and /dev/null differ diff --git a/www/icons/drawable-port-xxxhdpi/screen.png b/www/icons/drawable-port-xxxhdpi/screen.png deleted file mode 100644 index e220962..0000000 Binary files a/www/icons/drawable-port-xxxhdpi/screen.png and /dev/null differ diff --git a/www/icons/drawable-xxhdpi/icon.png b/www/icons/drawable-xxhdpi/icon.png deleted file mode 100644 index e6dc876..0000000 Binary files a/www/icons/drawable-xxhdpi/icon.png and /dev/null differ diff --git a/www/icons/drawable-xxxhdpi/icon.png b/www/icons/drawable-xxxhdpi/icon.png deleted file mode 100644 index 15d8554..0000000 Binary files a/www/icons/drawable-xxxhdpi/icon.png and /dev/null differ diff --git a/www/icons/drawable-hdpi/icon.png b/www/icons/mipmap-hdpi/icon.png similarity index 100% rename from www/icons/drawable-hdpi/icon.png rename to www/icons/mipmap-hdpi/icon.png diff --git a/www/icons/drawable-ldpi/icon.png b/www/icons/mipmap-ldpi/icon.png similarity index 100% rename from www/icons/drawable-ldpi/icon.png rename to www/icons/mipmap-ldpi/icon.png diff --git a/www/icons/drawable-mdpi/icon.png b/www/icons/mipmap-mdpi/icon.png similarity index 100% rename from www/icons/drawable-mdpi/icon.png rename to www/icons/mipmap-mdpi/icon.png diff --git a/www/icons/drawable-xhdpi/icon.png b/www/icons/mipmap-xhdpi/icon.png similarity index 100% rename from www/icons/drawable-xhdpi/icon.png rename to www/icons/mipmap-xhdpi/icon.png