Sign masterpassword-gui under Gradle.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'application'
|
||||
id 'com.github.johnrengelman.shadow' version '1.2.4'
|
||||
id 'com.github.johnrengelman.shadow' version '2.0.4'
|
||||
}
|
||||
|
||||
description = 'Master Password GUI'
|
||||
@@ -14,6 +14,21 @@ dependencies {
|
||||
compile group: 'com.yuvimasory', name: 'orange-extensions', version: '1.3.0'
|
||||
}
|
||||
|
||||
|
||||
// release with: STORE_PW=$(mpw masterpassword.keystore) KEY_PW_ANDROID=$(mpw masterpassword-android) gradle masterpassword-gui:shadowJar
|
||||
shadowJar.doLast {
|
||||
if (System.getenv( 'KEY_PW_DESKTOP' ) != null)
|
||||
ant.signjar(
|
||||
jar: archivePath,
|
||||
alias: 'masterpassword-desktop',
|
||||
keystore: 'masterpassword.keystore',
|
||||
storepass: System.getenv( 'STORE_PW' ),
|
||||
keypass: System.getenv( 'KEY_PW_DESKTOP' ),
|
||||
preservelastmodified: 'true',
|
||||
destdir: '.'
|
||||
)
|
||||
}
|
||||
|
||||
run {
|
||||
// I don't fully understand why this is necessary, but without it -Dmp.log.level is lost.
|
||||
systemProperties = System.properties
|
||||
|
@@ -112,9 +112,9 @@
|
||||
<includes>
|
||||
<include>target/*.jar</include>
|
||||
</includes>
|
||||
<keystore>release.jks</keystore>
|
||||
<storepass>${env.PASSWORD}</storepass>
|
||||
<keypass>${env.PASSWORD}</keypass>
|
||||
<keystore>masterpassword.keystore</keystore>
|
||||
<storepass>${env.STORE_PW}</storepass>
|
||||
<keypass>${env.KEY_PW_DESKTOP}</keypass>
|
||||
<alias>masterpassword-desktop</alias>
|
||||
<arguments>
|
||||
<argument>-sigalg</argument>
|
||||
|
Reference in New Issue
Block a user