mirror of https://github.com/axmolengine/axmol.git
reprepare assets on rebuild
This commit is contained in:
parent
7d730d7c21
commit
341bf1aff8
|
@ -47,3 +47,14 @@ dependencies {
|
||||||
compile fileTree(dir: 'libs', include: ['*.jar'])
|
compile fileTree(dir: 'libs', include: ['*.jar'])
|
||||||
compile project(':libcocos2dx')
|
compile project(':libcocos2dx')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task cleanAssets(type: Delete) {
|
||||||
|
delete 'assets'
|
||||||
|
}
|
||||||
|
task copyAssets(type: Copy) {
|
||||||
|
from '../../Resources'
|
||||||
|
into 'assets'
|
||||||
|
}
|
||||||
|
|
||||||
|
clean.dependsOn cleanAssets
|
||||||
|
preBuild.dependsOn copyAssets
|
||||||
|
|
Loading…
Reference in New Issue