add --debugjs (don´t uglify the js) option to cordova/build.sh for easier remote debugging
This commit is contained in:
parent
a1f95a4cbf
commit
96b58d2cfc
2 changed files with 21 additions and 6 deletions
|
|
@ -24,18 +24,24 @@ VERSION=`cut -d '"' -f2 $BUILDDIR/../version.js`
|
|||
|
||||
SKIPIOS=false
|
||||
CLEAR=false
|
||||
DBGJS=false
|
||||
|
||||
# Check Args
|
||||
if [[ $1 = "--android" || $2 = "--android" ]]
|
||||
if [[ $1 = "--android" || $2 = "--android" || $3 = "--android" ]]
|
||||
then
|
||||
SKIPIOS=true
|
||||
fi
|
||||
|
||||
if [[ $1 = "--clear" || $2 = "--clear" ]]
|
||||
if [[ $1 = "--clear" || $2 = "--clear" || $3 = "--clear" ]]
|
||||
then
|
||||
CLEAR=true
|
||||
fi
|
||||
|
||||
if [[ $1 = "--dbgjs" || $2 = "--dbgjs" || $3 = "--dbgjs" ]]
|
||||
then
|
||||
DBGJS=true
|
||||
fi
|
||||
|
||||
|
||||
echo "${OpenColor}${Green}* Checking dependencies...${CloseColor}"
|
||||
command -v cordova >/dev/null 2>&1 || { echo >&2 "Cordova is not present, please install it: sudo npm -g cordova."; exit 1; }
|
||||
|
|
@ -88,10 +94,18 @@ if [ ! -d $PROJECT ]; then
|
|||
|
||||
fi
|
||||
|
||||
echo "${OpenColor}${Green}* Generating copay bundle...${CloseColor}"
|
||||
cd $BUILDDIR/..
|
||||
grunt dist
|
||||
checkOK
|
||||
if $DBGJS
|
||||
then
|
||||
echo "${OpenColor}${Green}* Generating copay bundle (debug js)...${CloseColor}"
|
||||
cd $BUILDDIR/..
|
||||
grunt dist-dbg
|
||||
checkOK
|
||||
else
|
||||
echo "${OpenColor}${Green}* Generating copay bundle...${CloseColor}"
|
||||
cd $BUILDDIR/..
|
||||
grunt dist
|
||||
checkOK
|
||||
fi
|
||||
|
||||
echo "${OpenColor}${Green}* Coping files...${CloseColor}"
|
||||
cd $BUILDDIR/..
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue