nps/build.android.sh

22 lines
593 B
Bash
Raw Normal View History

2019-12-16 16:47:07 +00:00
#/bin/bash
2019-12-16 16:06:48 +00:00
#sudo apt-get install libgl1-mesa-dev xorg-dev
#go get github.com/ffdfgdfg/fyne-cross
#fyne-cross --targets=linux/amd64,windows/amd64,darwin/amd64 gui/npc/npc.go
2019-12-18 08:07:36 +00:00
cd /go
go get -u fyne.io/fyne fyne.io/fyne/cmd/fyne
2019-12-17 07:31:25 +00:00
mkdir -p /go/src/github.com/cnlh/nps
2019-12-18 08:07:36 +00:00
cp -R /app/* /go/src/github.com/cnlh/nps
2019-12-17 07:31:25 +00:00
cd /go/src/github.com/cnlh/nps
2019-12-16 16:06:48 +00:00
go mod vendor
cd vendor
2019-12-17 07:31:25 +00:00
cp -R * /go/src
2019-12-16 16:06:48 +00:00
cd ..
rm -rf vendor
2019-12-18 08:07:36 +00:00
#rm -rf ~/.cache/*
2019-12-16 16:06:48 +00:00
cd gui/npc
2019-12-18 08:07:36 +00:00
#export ANDROID_NDK_HOME=/usr/local/android_sdk/ndk-bundle
fyne package -appID org.nps.client -os android -icon ../../docs/logo.png
2019-12-17 07:31:25 +00:00
mv npc.apk /app/android_client.apk