mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03:00
Build and mount repo.zip with fonts/ and lang/
This commit is contained in:
committed by
Misa Elizabeth Kai
parent
3e0cf57a99
commit
945823ca30
@@ -68,6 +68,32 @@ android {
|
||||
enable true
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
assets {
|
||||
srcDir layout.buildDirectory.dir("generated/main/assets")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
def zipRepoAssetsTask = tasks.register("zipRepoAssets", Zip) {
|
||||
from('../../fonts') { spec ->
|
||||
spec.into('graphics')
|
||||
}
|
||||
from('../../lang') { spec ->
|
||||
spec.into('lang')
|
||||
}
|
||||
archiveFileName.set('repo.zip')
|
||||
destinationDirectory.value(layout.buildDirectory.dir("generated/main/assets"))
|
||||
}
|
||||
|
||||
project.android.applicationVariants.configureEach { variant ->
|
||||
def compressAssetsTask = project.tasks.named("merge${variant.name.capitalize()}Assets")
|
||||
compressAssetsTask.configure { task ->
|
||||
task.dependsOn zipRepoAssetsTask
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
Reference in New Issue
Block a user