build: Use gradle plugin to execute python script (fixes #1783) (#1795)

This commit is contained in:
Simon Frei 2022-06-07 14:09:04 +02:00 committed by GitHub
parent 39dd858993
commit b30bcf940b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -1,9 +1,12 @@
task buildNative(type: Exec) { plugins {
id 'ru.vyarus.use-python' version '2.3.0'
}
task buildNative(type: PythonTask) {
environment "NDK_VERSION", "$ndkVersionShared" environment "NDK_VERSION", "$ndkVersionShared"
inputs.dir("$projectDir/src/") inputs.dir("$projectDir/src/")
outputs.dir("$projectDir/../app/src/main/jniLibs/") outputs.dir("$projectDir/../app/src/main/jniLibs/")
executable = 'python3' command = "-u ./build-syncthing.py"
args = ['-u', './build-syncthing.py']
} }
/** /**