add signing to buildGradleApp
This commit is contained in:
parent
62b59e5353
commit
1cc64da8d4
1 changed files with 19 additions and 0 deletions
|
@ -78,6 +78,25 @@ stdenv.mkDerivation ({
|
|||
};
|
||||
|
||||
buildPhase = ''
|
||||
${stdenv.lib.optionalString release ''
|
||||
# Provide key signing attributes
|
||||
( echo "RELEASE_STORE_FILE=${keyStore}"
|
||||
echo "RELEASE_KEY_ALIAS=${keyAlias}"
|
||||
echo "RELEASE_STORE_PASSWORD=${keyStorePassword}"
|
||||
echo "RELEASE_KEY_PASSWORD=${keyAliasPassword}"
|
||||
) >> local.properties
|
||||
|
||||
cat >>build.gradle <<EOF
|
||||
signingConfigs {
|
||||
release {
|
||||
storeFile file(RELEASE_STORE_FILE)
|
||||
storePassword RELEASE_STORE_PASSWORD
|
||||
keyAlias RELEASE_KEY_ALIAS
|
||||
keyPassword RELEASE_KEY_PASSWORD
|
||||
}
|
||||
}
|
||||
EOF
|
||||
''}
|
||||
buildDir=`pwd`
|
||||
cp -r $ANDROID_HOME $buildDir/local_sdk
|
||||
chmod -R 755 local_sdk
|
||||
|
|
Loading…
Reference in a new issue