fix: ~/Aliucord not generated

This commit is contained in:
Diamond 2022-09-24 17:06:31 -07:00
parent 564370ab9c
commit 1b607f5897
No known key found for this signature in database
GPG key ID: DCBE5952BB3B6420
2 changed files with 5 additions and 1 deletions

1
.gitignore vendored
View file

@ -9,3 +9,4 @@ release
.externalNativeBuild
.cxx
local.properties
*.log

View file

@ -26,7 +26,10 @@ object Signer {
val keyStore = KeyStore.getInstance(KeyStore.getDefaultType())
aliucordDir.resolve("ks.keystore").also {
if (!it.exists()) newKeystore(it)
if (!it.exists()) {
aliucordDir.mkdir()
newKeystore(it)
}
}.inputStream().use { stream ->
keyStore.load(stream, null)
}