mirror of
https://github.com/overte-org/overte.git
synced 2025-04-12 09:22:10 +02:00
37 lines
869 B
Groovy
37 lines
869 B
Groovy
buildscript {
|
|
repositories {
|
|
jcenter()
|
|
google()
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:3.0.1'
|
|
classpath 'de.undercouch:gradle-download-task:3.3.0'
|
|
}
|
|
}
|
|
|
|
import org.apache.tools.ant.taskdefs.condition.Os
|
|
|
|
def file='scribe_linux_x86_64'
|
|
if (Os.isFamily(Os.FAMILY_MAC)) {
|
|
file = 'scribe_osx_x86_64'
|
|
}
|
|
def localFile='scribe'
|
|
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
|
|
file = 'scribe.exe'
|
|
}
|
|
|
|
def url='https://s3.amazonaws.com/Oculus/Android/' + file
|
|
def destFile = new File(HIFI_ANDROID_PRECOMPILED, localFile)
|
|
|
|
task filepermission(type: Exec) {
|
|
commandLine 'chmod', '700', '<file_path>'
|
|
}
|
|
|
|
task downloadScribe(type: de.undercouch.gradle.tasks.download.Download) {
|
|
src url
|
|
dest destFile
|
|
}
|
|
|
|
task setupScribe(dependsOn: downloadScribe, type: Exec) {
|
|
commandLine 'chmod', 'a+x', destFile
|
|
}
|