1
0
mirror of https://github.com/taigrr/crocgui synced 2025-01-18 04:03:16 -08:00
crocgui/fdroid-build.sh
2021-03-16 14:52:07 -05:00

23 lines
788 B
Bash

#!/usr/bin/env bash
curl -Lso go.tar.gz https://golang.org/dl/go1.16.linux-amd64.tar.gz
echo "013a489ebb3e24ef3d915abe5b94c3286c070dfe0818d5bca8108f1d6e8440d2 go.tar.gz" | sha256sum -c -
mkdir -p golang
tar -C golang -xzf go.tar.gz
mkdir -p gopath
export GOPATH="$PWD/gopath"
export GO_LANG="$PWD/golang/go/bin"
export GO_COMPILED="$PWD/bin"
export PATH="$GO_LANG:$GO_COMPILED:$PATH"
export ANDROID_SDK_ROOT=$$SDK$$
export ANDROID_NDK_ROOT=$$NDK$$
export PATH=$(pwd)/go/bin:$PATH
go version
curl -Lso fyne-mobile-save.zip https://github.com/howeyc/fyne/archive/mobile-save.zip
unzip fyne-mobile-save
pushd fyne-mobile-save
go build fyne.io/fyne/v2/cmd/fyne
popd
./fyne-mobile-save/fyne package -os android -release -appID com.github.howeyc.crocgui -icon metadata/en-US/images/icon.png