mirror of https://github.com/axmolengine/axmol.git
reprepare assets on rebuild
This commit is contained in:
parent
341bf1aff8
commit
9b5b87b505
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue