mirror of
https://github.com/MatsuriDayo/NekoBoxForAndroid.git
synced 2025-12-19 06:30:05 +08:00
29 lines
603 B
Bash
Executable File
29 lines
603 B
Bash
Executable File
#!/bin/bash
|
|
|
|
chmod -R 777 .build 2>/dev/null
|
|
rm -rf .build 2>/dev/null
|
|
|
|
if [ -z "$GOPATH" ]; then
|
|
GOPATH=$(go env GOPATH)
|
|
fi
|
|
|
|
# Install gomobile
|
|
if [ ! -f "$GOPATH/bin/gomobile-matsuri" ]; then
|
|
git clone https://github.com/MatsuriDayo/gomobile.git
|
|
pushd gomobile
|
|
git checkout origin/master2
|
|
pushd cmd
|
|
pushd gomobile
|
|
go install -v
|
|
popd
|
|
pushd gobind
|
|
go install -v
|
|
popd
|
|
popd
|
|
rm -rf gomobile
|
|
mv "$GOPATH/bin/gomobile" "$GOPATH/bin/gomobile-matsuri"
|
|
mv "$GOPATH/bin/gobind" "$GOPATH/bin/gobind-matsuri"
|
|
fi
|
|
|
|
GOBIND=gobind-matsuri gomobile-matsuri init
|