rcx: fix build hacks for v1.12.0

This commit is contained in:
x0b 2021-05-07 11:00:52 +00:00 committed by x0b
parent 9e026d0047
commit c82902716f
No known key found for this signature in database
GPG key ID: 7B2B14EAC3EBDDF7

View file

@ -42,25 +42,18 @@ Builds:
- versionName: 1.12.0
versionCode: 200
commit: v1.12.0
sudo:
- apt-get update | apt-get update
- apt-get install -y -t testing golang-go
gradle:
- oss
output: app/build/outputs/apk/oss/release/app-oss-universal-release-unsigned.apk
build:
- curl -o go.tar.gz https://dl.google.com/go/go1.15.8.linux-amd64.tar.gz
- echo 'd3379c32a90fdf9382166f8f48034c459a8cc433730bc9476d39d9082c94583b go.tar.gz'
| sha256sum -c
- mkdir -p golang
- tar -C golang -xzf go.tar.gz
- export GOPATH="$PWD"
- export GOROOT="$PWD/golang/go"
- export PATH="$GOROOT/bin:$PATH"
- sed -i "27i environment 'GO111MODULE', 'off'" rclone/build.gradle
- sed -i "27i ignoreExitValue true" rclone/build.gradle
- sed -i -e 's/commandLine '\''go'\''/commandLine '\''\/home\/vagrant\/build\/io.github.x0b.rcx\/golang\/go\/bin\/go'\''/g'
rclone/build.gradle
- sed -i -e 's/'\''ndk-bundle'\'',/'\''..\/android-ndk'\'', '\''r20b'\'',/g'
rclone/build.gradle
ndk: r20b
- sed -i -e 's|System.getenv('\''ANDROID_HOME'\''), '\''ndk'\'', '\''21.3.6528147'\'',|'\'''"$$NDK$$"''\'',
|g' rclone/build.gradle
- sed -i -e 's|21.3.6528147|21.4.7075529|g' app/build.gradle
ndk: r21e
preassemble:
- rclone:buildNative