reprepare assets on rebuild

This commit is contained in:
raksa 2015-12-22 13:56:21 +07:00
parent 341bf1aff8
commit 9b5b87b505
1 changed files with 20 additions and 0 deletions

View File

@ -47,3 +47,23 @@ dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':libcocos2dx')
}
task cleanAssets(type: Delete) {
delete 'assets'
}
task copyAssets(type: Copy) {
from('../../../cocos2d-x/cocos/scripting/js-bindings/') {
include 'script/**'
}
from('../../../../') {
include 'res/**'
include 'src/**'
include 'main.js'
include 'project.json'
}
into 'assets'
}
clean.dependsOn cleanAssets
preBuild.dependsOn copyAssets