mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-25 15:00:09 +08:00
[build] Create "local.properties" on build if not exists
This commit is contained in:
parent
d2d2f4844d
commit
111236e0be
@ -31,6 +31,7 @@ pluginManagement {
|
||||
|
||||
rootProject.name = "mirai"
|
||||
|
||||
runCatching { rootProject.projectDir.resolve("local.properties").let { if (!it.exists()) it.createNewFile() } }
|
||||
|
||||
val localProperties = Properties().apply {
|
||||
rootProject.projectDir.resolve("local.properties").takeIf { it.exists() }?.bufferedReader()?.use {
|
||||
|
Loading…
Reference in New Issue
Block a user