Skip to content

Commit 5470c75

Browse files
committed
main build.gradle build runtime only in release
1 parent d35575d commit 5470c75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ task generateRuntime (type: Exec) {
9292
doFirst {
9393
workingDir "$rootDir/runtime"
9494
if(isWinOs) {
95-
commandLine "cmd", "/c", "gradlew", "build", "-PpackageVersion=${pVersion}", "-PgitCommitVersion=${arVersion}"
95+
commandLine "cmd", "/c", "gradlew", "assembleRelease", "-PpackageVersion=${pVersion}", "-PgitCommitVersion=${arVersion}"
9696
}
9797
else {
98-
commandLine "./gradlew", "build", "-PpackageVersion=${pVersion}", "-PgitCommitVersion=${arVersion}"
98+
commandLine "./gradlew", "assembleRelease", "-PpackageVersion=${pVersion}", "-PgitCommitVersion=${arVersion}"
9999
}
100100
}
101101
}

0 commit comments

Comments
 (0)