small fixes on build scripts

This commit is contained in:
Matias Alejo Garcia 2015-01-05 17:28:15 -03:00
commit e32706fb9e
3 changed files with 44 additions and 27 deletions

View file

@ -21,18 +21,18 @@ CURRENT_OS=$1
if [ -z "CURRENT_OS" ]
then
echo "Build.sh WP8|ANDROID|IPHONE"
echo "Build.sh WP8|ANDROID|IOS"
fi
CLEAR=false
DBGJS=false
if [[ $2 = "--clear" || $3 = "--clear" ]]
if [[ $2 == "--clear" || $3 == "--clear" ]]
then
CLEAR=true
fi
if [[ $2 = "--dbgjs" || $3 = "--dbgjs" ]]
if [[ $2 == "--dbgjs" || $3 == "--dbgjs" ]]
then
DBGJS=true
fi
@ -68,7 +68,7 @@ if [ ! -d $PROJECT ]; then
checkOK
fi
if [ $CURRENT_OS == "IPHONE" ]; then
if [ $CURRENT_OS == "IOS" ]; then
echo "${OpenColor}${Green}* Adding IOS platform... ${CloseColor}"
cordova platforms add ios
checkOK
@ -115,7 +115,7 @@ else
checkOK
fi
echo "${OpenColor}${Green}* Coping files...${CloseColor}"
echo "${OpenColor}${Green}* Copying files...${CloseColor}"
cd $BUILDDIR/..
cp -af dist/web/** $PROJECT/www
checkOK
@ -125,15 +125,12 @@ checkOK
cd $BUILDDIR
cp config.xml $PROJECT/config.xml
checkOK
cp config.xml $PROJECT/config.xml
checkOK
if [ $CURRENT_OS == "ANDROID" ]; then
if [ $CURRENT_OS == "ANDROID" ]; then
echo "Android project!!!"
mkdir -p $PROJECT/platforms/android/res/xml/
checkOK
@ -147,9 +144,13 @@ cd $BUILDDIR
checkOK
fi
if [ $CURRENT_OS == "IPHONE" ]; then
if [ $CURRENT_OS == "IOS" ]; then
echo "IOS project!!!"
mkdir -p $PROJECT/platforms/ios
checkOK
echo "Iphone project!!!"
cp ios/Copay-Info.plist $PROJECT/platforms/ios/Copay-Info.plist
checkOK

View file

@ -1,8 +1,8 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.bitpay.copay"
version="0.9.2"
android-versionCode="20"
ios-CFBundleVersion="0.9.2">
version="0.9.3"
android-versionCode="22"
ios-CFBundleVersion="0.9.3">
<name>Copay</name>
<description>
A secure bitcoin wallet for friends and companies.