Skip to content

Commit 5a4c8c7

Browse files
committed
Add key
1 parent 2a281ac commit 5a4c8c7

File tree

5 files changed

+37
-0
lines changed

5 files changed

+37
-0
lines changed

gradle.properties

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
android.enableJetifier=true
22
android.useAndroidX=true
33
org.gradle.jvmargs=-Xmx2048M
4+
5+
#SONATYPE_HOST=DEFAULT
6+
# or when publishing to https://s01.oss.sonatype.org
7+
SONATYPE_HOST=S01
8+
RELEASE_SIGNING_ENABLED=true
9+
POM_ARTIFACT_ID=chart

signing/cleanup.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
find . -name '*.gpg' |xargs rm

signing/decrypt.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/env bash
2+
3+
if [[ -z "$CRYPT_PASS" ]]
4+
then
5+
read -sp 'Password: ' CRYPT_PASS
6+
if [[ -z "$CRYPT_PASS" ]]
7+
then
8+
echo "\$CRYPT_PASS Still empty"
9+
exit 1
10+
fi
11+
else
12+
echo "\$CRYPT_PASS available"
13+
fi
14+
15+
pushd signing
16+
17+
# to encrypt
18+
#openssl aes-256-cbc -salt -pbkdf2 -salt -k "$CRYPT_PASS" -in secring.gpg -out secring.gpg.enc
19+
#openssl aes-256-cbc -salt -pbkdf2 -salt -k "$CRYPT_PASS" -in gradle_secure.properties -out gradle_secure.properties.enc
20+
21+
# Ubuntu 18.04 (openssl 1.1.0g+) needs -md md5
22+
# https://askubuntu.com/questions/1067762/unable-to-decrypt-text-files-with-openssl-on-ubuntu-18-04/1076708
23+
echo "decrypt secring.gpg"
24+
openssl aes-256-cbc -d -salt -pbkdf2 -k "$CRYPT_PASS" -in secring.gpg.enc -out secring.gpg
25+
echo "decrypt gradle_secure.properties"
26+
openssl aes-256-cbc -d -salt -pbkdf2 -k "$CRYPT_PASS" -in gradle_secure.properties.enc -out gradle_secure.properties
27+
28+
popd 1>/dev/null
240 Bytes
Binary file not shown.

signing/secring.gpg.enc

8.41 KB
Binary file not shown.

0 commit comments

Comments
 (0)