[samples] Fix new DSL in the tetris sample
This commit is contained in:
committed by
Ilya Matveev
parent
c4306a7462
commit
15a17f1c92
@@ -53,7 +53,7 @@ components.main {
|
|||||||
|
|
||||||
assemble {
|
assemble {
|
||||||
doLast {
|
doLast {
|
||||||
components.withType(KotlinNativeExecutable.class).all { binary ->
|
components.main.binaries.get().each { binary ->
|
||||||
copy {
|
copy {
|
||||||
from 'src/main/resources'
|
from 'src/main/resources'
|
||||||
into binary.runtimeFile.asFile.get().parentFile
|
into binary.runtimeFile.asFile.get().parentFile
|
||||||
@@ -76,10 +76,10 @@ task windowsResources (type: Exec) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
project.tasks.matching {
|
project.tasks.matching {
|
||||||
name == 'compileDebugMingw_x64KotlinNative' ||
|
it.name == 'compileDebugMingw_x64KotlinNative' ||
|
||||||
name == 'compileReleaseMingw_x64KotlinNative'
|
it.name == 'compileReleaseMingw_x64KotlinNative'
|
||||||
}.all {
|
}.all {
|
||||||
dependsOn 'windowsResources'
|
it.dependsOn 'windowsResources'
|
||||||
inputs.file resFile
|
it.inputs.file resFile
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user