From 4664c66e2dcfb228ba182c50d59e8798a5842274 Mon Sep 17 00:00:00 2001 From: Jani Monoses Date: Thu, 13 Aug 2015 03:51:44 +0300 Subject: [PATCH] Add build and install scripts --- build.sh | 18 ++++++++++++++++++ install.sh | 6 ++++++ 2 files changed, 24 insertions(+) create mode 100755 build.sh create mode 100755 install.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..658b825 --- /dev/null +++ b/build.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +mode=${1:-dev} +echo "Building package in $mode mode." + +rm -Rf builddir + +cp -a click builddir + +docker run --rm -it -v $(pwd):/home/developer -v $GOPATH:/home/developer/gopath -w $(pwd|sed "s,$GOPATH,/home/developer/gopath,") janimo/goqml-cross build -i -o builddir/textsecure +mkdir -p builddir/qml +cp -a qml/phoneui builddir/qml +if [ $mode = "dev" ];then + #copy config.yml or rootCA.pem + cp -a dev/* builddir/ +fi + +click build builddir diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..dabc95b --- /dev/null +++ b/install.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +CLICK_NAME=textsecure.jani*click + +adb push $CLICK_NAME /home/phablet +adb shell pkcon install-local $CLICK_NAME --allow-untrusted