Created
June 26, 2015 16:40
-
-
Save kibotu/aa90f7d748284a2ef666 to your computer and use it in GitHub Desktop.
android install obb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task installObb() << { | |
description = "Install all OBB packages" | |
def stdout = new ByteArrayOutputStream() | |
def obbFile = "main." + getVersionCode() + "." + getApplicationId() + ".obb" | |
def source = "../" + obbFile + ".zip" | |
def destination = "/sdcard/Android/obb/" + getApplicationId() + "/" + obbFile | |
println("adb push " + source + " " + destination) | |
exec { | |
executable android.getAdbExe().toString() | |
args = ['push', source.toString(), destination.toString()] | |
standardOutput = stdout; | |
} | |
def result = stdout.toString().trim(); | |
println(result) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment