File tree Expand file tree Collapse file tree 1 file changed +10
-18
lines changed
Expand file tree Collapse file tree 1 file changed +10
-18
lines changed Original file line number Diff line number Diff line change @@ -28,27 +28,19 @@ android {
2828 buildConfigField " String" , " SETUP_INSTRUCTIONS_URL" , " \" https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki\" "
2929 }
3030
31- signingConfigs {
32- release {
33- def tmpFilePath = System . getProperty(" user.home" ) + " /work/_temp/keystore/"
34- def allFilesFromDir = new File (tmpFilePath). listFiles()
31+ if (new File (" keystore/signing.properties" ). exists()) {
32+ Properties props = new Properties ()
33+ props. load(new FileInputStream (file(" signing.properties" )))
3534
36- if (allFilesFromDir != null ) {
37- def keystoreFile = allFilesFromDir. first()
38- keystoreFile. renameTo(" keystore/aisdv1.jks" )
35+ signingConfigs {
36+ release {
37+ storeFile file(props[' keystore' ])
38+ storePassword props[' keystore.password' ]
39+ keyAlias props[' keystore.alias' ]
40+ keyPassword props[' keystore.password' ]
3941 }
40-
41- storeFile = file(" keystore/aisdv1.jks" )
42- storePassword System . getenv(" AISDV1_STORE_PASSWORD" )
43- keyAlias System . getenv(" AISDV1_KEY_ALIAS" )
44- keyPassword System . getenv(" AISDV1_KEY_PASSWORD" )
45- }
46- }
47-
48- buildTypes {
49- release {
50- signingConfig signingConfigs. release
5142 }
43+ buildTypes. release. signingConfig = signingConfigs. release
5244 }
5345
5446 flavorDimensions " type"
You can’t perform that action at this time.
0 commit comments