Kaynağa Gözat

add build script

pull/342/head
Guillaume Vincent 7 yıl önce
ebeveyn
işleme
cdec0db223
11 değiştirilmiş dosya ile 25 ekleme ve 13 silme
  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 Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

Önce Sonra
Genişlik: 960  |  Yükseklik: 1600  |  Boyut: 97 KiB

BIN
www/icons/drawable-port-xxxhdpi/screen.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 1280  |  Yükseklik: 1920  |  Boyut: 130 KiB

BIN
www/icons/drawable-xxhdpi/icon.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 152  |  Yükseklik: 152  |  Boyut: 5.4 KiB

BIN
www/icons/drawable-xxxhdpi/icon.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 192  |  Yükseklik: 192  |  Boyut: 7.3 KiB

www/icons/drawable-hdpi/icon.png → www/icons/mipmap-hdpi/icon.png Dosyayı Görüntüle


www/icons/drawable-ldpi/icon.png → www/icons/mipmap-ldpi/icon.png Dosyayı Görüntüle


www/icons/drawable-mdpi/icon.png → www/icons/mipmap-mdpi/icon.png Dosyayı Görüntüle


www/icons/drawable-xhdpi/icon.png → www/icons/mipmap-xhdpi/icon.png Dosyayı Görüntüle


Yükleniyor…
İptal
Kaydet