Ver código fonte

add build script

pull/342/head
Guillaume Vincent 7 anos atrás
pai
commit
cdec0db223
11 arquivos alterados com 25 adições e 13 exclusões
  1. +20
    -0
      build.sh
  2. +4
    -10
      config.xml
  3. +1
    -3
      readme.md
  4. BIN
      www/icons/drawable-port-xxhdpi/screen.png
  5. BIN
      www/icons/drawable-port-xxxhdpi/screen.png
  6. BIN
      www/icons/drawable-xxhdpi/icon.png
  7. BIN
      www/icons/drawable-xxxhdpi/icon.png
  8. +0
    -0
      www/icons/mipmap-hdpi/icon.png
  9. +0
    -0
      www/icons/mipmap-ldpi/icon.png
  10. +0
    -0
      www/icons/mipmap-mdpi/icon.png
  11. +0
    -0
      www/icons/mipmap-xhdpi/icon.png

+ 20
- 0
build.sh Ver arquivo

@@ -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

+ 4
- 10
config.xml Ver arquivo

@@ -31,24 +31,18 @@

<platform name="android">
<allow-intent href="market:*"/>
<icon src="www/icons/drawable-ldpi/icon.png" density="ldpi"/>
<icon src="www/icons/drawable-mdpi/icon.png" density="mdpi"/>
<icon src="www/icons/drawable-hdpi/icon.png" density="hdpi"/>
<icon src="www/icons/drawable-xhdpi/icon.png" density="xhdpi"/>
<icon src="www/icons/drawable-xxhdpi/icon.png" density="xxhdpi"/>
<icon src="www/icons/drawable-xxxhdpi/icon.png" density="xxxhdpi"/>
<icon src="www/icons/mipmap-hdpi/icon.png" density="hdpi"/>
<icon src="www/icons/mipmap-ldpi/icon.png" density="ldpi"/>
<icon src="www/icons/mipmap-mdpi/icon.png" density="mdpi"/>
<icon src="www/icons/mipmap-xhdpi/icon.png" density="xhdpi"/>

<splash src="www/icons/drawable-land-hdpi/screen.png" density="land-hdpi"/>
<splash src="www/icons/drawable-land-ldpi/screen.png" density="land-ldpi"/>
<splash src="www/icons/drawable-land-mdpi/screen.png" density="land-mdpi"/>
<splash src="www/icons/drawable-land-xhdpi/screen.png" density="land-xhdpi"/>
<splash src="www/icons/drawable-land-xhdpi/screen.png" density="land-xhdpi"/>
<splash src="www/icons/drawable-land-xhdpi/screen.png" density="land-xhdpi"/>
<splash src="www/icons/drawable-port-hdpi/screen.png" density="port-hdpi"/>
<splash src="www/icons/drawable-port-ldpi/screen.png" density="port-ldpi"/>
<splash src="www/icons/drawable-port-mdpi/screen.png" density="port-mdpi"/>
<splash src="www/icons/drawable-port-xhdpi/screen.png" density="port-xhdpi"/>
<splash src="www/icons/drawable-port-xxhdpi/screen.png" density="port-xxhdpi"/>
<splash src="www/icons/drawable-port-xxxhdpi/screen.png" density="port-xxxhdpi"/>
</platform>
</widget>

+ 1
- 3
readme.md Ver arquivo

@@ -2,9 +2,7 @@

## Build

npm run build
cordova platform add android
cordova build
./build.sh
## Run


BIN
www/icons/drawable-port-xxhdpi/screen.png Ver arquivo

Antes Depois
Largura: 960  |  Altura: 1600  |  Tamanho: 97 KiB

BIN
www/icons/drawable-port-xxxhdpi/screen.png Ver arquivo

Antes Depois
Largura: 1280  |  Altura: 1920  |  Tamanho: 130 KiB

BIN
www/icons/drawable-xxhdpi/icon.png Ver arquivo

Antes Depois
Largura: 152  |  Altura: 152  |  Tamanho: 5.4 KiB

BIN
www/icons/drawable-xxxhdpi/icon.png Ver arquivo

Antes Depois
Largura: 192  |  Altura: 192  |  Tamanho: 7.3 KiB

www/icons/drawable-hdpi/icon.png → www/icons/mipmap-hdpi/icon.png Ver arquivo


www/icons/drawable-ldpi/icon.png → www/icons/mipmap-ldpi/icon.png Ver arquivo


www/icons/drawable-mdpi/icon.png → www/icons/mipmap-mdpi/icon.png Ver arquivo


www/icons/drawable-xhdpi/icon.png → www/icons/mipmap-xhdpi/icon.png Ver arquivo


Carregando…
Cancelar
Salvar