Bladeren bron

add build script

pull/342/head
Guillaume Vincent 7 jaren geleden
bovenliggende
commit
cdec0db223
11 gewijzigde bestanden met toevoegingen van 25 en 13 verwijderingen
  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 Bestand weergeven

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

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

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

Voor Na
Breedte: 960  |  Hoogte: 1600  |  Grootte: 97 KiB

BIN
www/icons/drawable-port-xxxhdpi/screen.png Bestand weergeven

Voor Na
Breedte: 1280  |  Hoogte: 1920  |  Grootte: 130 KiB

BIN
www/icons/drawable-xxhdpi/icon.png Bestand weergeven

Voor Na
Breedte: 152  |  Hoogte: 152  |  Grootte: 5.4 KiB

BIN
www/icons/drawable-xxxhdpi/icon.png Bestand weergeven

Voor Na
Breedte: 192  |  Hoogte: 192  |  Grootte: 7.3 KiB

www/icons/drawable-hdpi/icon.png → www/icons/mipmap-hdpi/icon.png Bestand weergeven


www/icons/drawable-ldpi/icon.png → www/icons/mipmap-ldpi/icon.png Bestand weergeven


www/icons/drawable-mdpi/icon.png → www/icons/mipmap-mdpi/icon.png Bestand weergeven


www/icons/drawable-xhdpi/icon.png → www/icons/mipmap-xhdpi/icon.png Bestand weergeven


Laden…
Annuleren
Opslaan