From f732208ff82f9815225fc2441be848308b401745 Mon Sep 17 00:00:00 2001 From: Guillaume Vincent Date: Sat, 15 Apr 2017 11:14:22 +0200 Subject: [PATCH] prepare next version --- build.sh | 5 ----- config.xml | 6 +++--- package.json | 5 +++-- readme.md | 13 ++----------- 4 files changed, 8 insertions(+), 21 deletions(-) diff --git a/build.sh b/build.sh index 82017a7..6b6b7ec 100755 --- a/build.sh +++ b/build.sh @@ -1,10 +1,5 @@ #!/usr/bin/env bash - -rm -rf plateforms/android -npm run build -./node_modules/.bin/cordova clean - 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 diff --git a/config.xml b/config.xml index 7dc204b..bd41f44 100644 --- a/config.xml +++ b/config.xml @@ -1,5 +1,5 @@ - LessPass @@ -13,8 +13,8 @@ - - + + diff --git a/package.json b/package.json index bee9d18..e12c7da 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,9 @@ "author": "Guillaume Vincent ", "repository": "lesspass/cordova", "scripts": { - "prebuild": "npm prune && npm install && gulp", - "build": "rm -rf www/dist/ && gulp" + "prebuild": "npm prune && npm install", + "clean":"rm -rf plateforms/android && rm -rf www/dist/ && cordova clean", + "build": "npm run clean && gulp && ./build.sh" }, "dependencies": { "lesspass-pure": "^4.5.3" diff --git a/readme.md b/readme.md index 06cb96f..ad553c8 100644 --- a/readme.md +++ b/readme.md @@ -1,25 +1,16 @@ > LessPass Cordova App for [lesspass.com](https://lesspass.com) -## requirements +## Check everything ok ./node_modules/.bin/cordova requirements -## add Cordova platform +## Add Android platform ./node_modules/.bin/cordova platform add android ## Test ./node_modules/.bin/cordova emulate android - -## Build - - ./build.sh - - -## Run - - ./node_modules/.bin/cordova run android ## Build Release