Skip to content

Commit

Permalink
Add build and install scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Jani Monoses committed Aug 13, 2015
1 parent 2585073 commit 4664c66
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
18 changes: 18 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4664c66

Please sign in to comment.