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

20 lines
637 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
mkdir -p gocache
export GOPATH="$PWD/gopath"
export GOCACHE="$PWD/gocache"
export GO_LANG="$PWD/golang/go/bin"
export GO_COMPILED="$GOPATH/bin"
export PATH="$GO_LANG:$GO_COMPILED:$PATH"
go version
go get fyne.io/fyne/v2/cmd/fyne\@v2.0.2
fyne version
fyne package -os android -release -appID com.github.howeyc.crocgui -icon metadata/en-US/images/icon.png
zip -d crocgui.apk "META-INF/*"