mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-05-29 13:00:17 +02:00
fix(ci): getVersion task
This commit is contained in:
parent
5c4fe9ed5f
commit
d074e40581
@ -16,6 +16,10 @@ rootProject.ext.set("buildHash", properties["debug_build_hash"] ?: java.security
|
||||
tasks.register("getVersion") {
|
||||
doLast {
|
||||
val versionFile = File("app/build/version.txt")
|
||||
versionFile.parentFile.mkdirs()
|
||||
if (!versionFile.exists()) {
|
||||
versionFile.createNewFile()
|
||||
}
|
||||
versionFile.writeText(versionName)
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user