Sfoglia il codice sorgente

add build script

pull/342/head
Guillaume Vincent 7 anni fa
parent
commit
cdec0db223
11 ha cambiato i file con 25 aggiunte e 13 eliminazioni
  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 Vedi File

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

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

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

Prima Dopo
Larghezza: 960  |  Altezza: 1600  |  Dimensione: 97 KiB

BIN
www/icons/drawable-port-xxxhdpi/screen.png Vedi File

Prima Dopo
Larghezza: 1280  |  Altezza: 1920  |  Dimensione: 130 KiB

BIN
www/icons/drawable-xxhdpi/icon.png Vedi File

Prima Dopo
Larghezza: 152  |  Altezza: 152  |  Dimensione: 5.4 KiB

BIN
www/icons/drawable-xxxhdpi/icon.png Vedi File

Prima Dopo
Larghezza: 192  |  Altezza: 192  |  Dimensione: 7.3 KiB

www/icons/drawable-hdpi/icon.png → www/icons/mipmap-hdpi/icon.png Vedi File


www/icons/drawable-ldpi/icon.png → www/icons/mipmap-ldpi/icon.png Vedi File


www/icons/drawable-mdpi/icon.png → www/icons/mipmap-mdpi/icon.png Vedi File


www/icons/drawable-xhdpi/icon.png → www/icons/mipmap-xhdpi/icon.png Vedi File


Caricamento…
Annulla
Salva