Commit 4fbb934b authored by Eric Seigne's avatar Eric Seigne
Browse files

build script

parent 878653e8
......@@ -4,7 +4,7 @@ export ANDROID_SDK_ROOT=/opt/android/
export ANDROID_HOME=/opt/android/sdk/
export PATH=${PATH}:$ANDROID_SDK_ROOT:$ANDROID_SDK_ROOT/tools:$ANDROID_SDK_ROOT/platform-tools:$ANDROID_SDK_ROOT/tools/bin/
SIGNID="eric"
SIGNID="ryxeo"
SIGFILE=~/bin/android_release.keystore
fullInstall=""
......@@ -76,7 +76,7 @@ if [ "${fullInstall}" == "o" ]; then
fi
#on force le UserAgent :)
APPVERSION=`grep version config.xml | grep doliscan | sed s/".*version=\""/""/ | cut -d '"' -f1`
APPVERSION=`grep fr.caprel.doliscan config.xml | grep doliscan | sed s/".*version=\""/""/ | cut -d '"' -f1`
sed -i -e s%".*preference name=\"OverrideUserAgent\" value=\".*"%" <preference name=\"OverrideUserAgent\" value=\"Mozilla/5.0 OpenNDF/${APPVERSION} Android\" />"% config.xml
#et on hardcode le globalAppVersion au passage
......
#pseudo script used to build package
#on force le UserAgent :)
APPVERSION=`grep version config.xml | grep doliscan | sed s/".*version=\""/""/ | cut -d '"' -f1`
APPVERSION=`grep version config.xml | grep fr.caprel.doliscan | sed s/".*version=\""/""/ | cut -d '"' -f1`
sed -i -e s%".*preference name=\"OverrideUserAgent\" value=\".*"%" <preference name=\"OverrideUserAgent\" value=\"Mozilla/5.0 OpenNDF/${APPVERSION} iOS\" />"% config.xml
cordova platform remove android
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment