Update build recipe (grep NDK version)

This commit is contained in:
Catfriend1 2023-12-06 08:19:10 +00:00 committed by linsui
parent 969566aa75
commit f0c696de4f

View file

@ -4,7 +4,7 @@ License: MPL-2.0
WebSite: https://github.com/Catfriend1/syncthing-android/wiki
SourceCode: https://github.com/Catfriend1/syncthing-android-fdroid
IssueTracker: https://github.com/Catfriend1/syncthing-android/issues
Translation: https://www.transifex.com/catfriend1/syncthing-android-1
Translation: https://hosted.weblate.org/projects/syncthing/android/catfriend1
Changelog: https://github.com/Catfriend1/syncthing-android/releases
Liberapay: cf4friends
@ -2043,10 +2043,10 @@ Builds:
- sed -i -e '/executable/s/python/python3/' {../syncthing,.}/build.gradle
- echo -e "\norg.gradle.jvmargs=-Xmx4096m" >> ../gradle.properties
build:
- export ndkversion=$(grep "NDK_VERSION = " ../syncthing/build-syncthing.py|cut
-d "'" -f 2)
- export ndkversion=$(grep "ndkVersionShared = " ../build.gradle | cut -d "'"
-f 2)
- sdkmanager "ndk;$ndkversion"
- export ANDROID_NDK_HOME=$$SDK$$/ndk/26.1.10909125
- export ANDROID_NDK_HOME=$$SDK$$/ndk/$ndkversion
- export goversion=$(grep "GO_VERSION = " ../syncthing/build-syncthing.py|cut
-d "'" -f 2)
- pushd $$go$$