ligi / IPFSDroid

Android App for the InterPlanetary File System(IPFS)
GNU General Public License v3.0
304 stars 73 forks source link

arm & x86 source #22

Closed NateWickstrom closed 7 years ago

NateWickstrom commented 7 years ago

How can i build/find the ipfs bin that's downloaded?

ligi commented 7 years ago

Here you go: https://github.com/ligi/IPFSDroid/blob/master/app/src/main/java/org/ligi/ipfsdroid/IPFSDaemon.kt#L21

And this is how the above binaries are created:

mkdir /tmp/workspace
cd /tmp/workspace/
export GOPATH=/tmp/workspace/
export PATH=$GOPATH/bin:$PATH
go get -d github.com/ipfs/go-ipfs
cd $GOPATH/src/github.com/ipfs/go-ipfs
make toolkit_upgrade
make deps
xgo -go 1.8.3 --targets=android-16/* ./cmd/ipfs