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