Skip to content

Commit

Permalink
Make some small fixes to install-android-prebuilt.sh
Browse files Browse the repository at this point in the history
1) Remove the merge artifacts at the beginning of the line
2) Remove the --passphrase argument, it is not supported in gpg any
   more.
  • Loading branch information
hoisie committed Feb 15, 2024
1 parent b2f47c2 commit be9dada
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions scripts/install-android-prebuilt.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@@ -0,0 1,85 @@
#!/bin/bash
#
# This script signs already built AOSP Android jars, and installs them in your local
Expand All @@ -20,11 +19,6 @@ if [[ $# -ne 3 ]]; then
exit 1
fi

read -p "Please set the GPG passphrase: " -s signingPassphrase
if [[ -z "${signingPassphrase}" ]]; then
exit 1
fi

JAR_DIR=$(readlink -e "$1")
ANDROID_VERSION="$2"
ROBOLECTRIC_SUB_VERSION="$3"
Expand Down Expand Up @@ -53,7 +47,7 @@ build_signed_packages() {

echo "Robolectric: Signing files with gpg..."
for ext in ".jar" "-javadoc.jar" "-sources.jar" ".pom"; do
( cd ${JAR_DIR} && gpg -ab --passphrase ${signingPassphrase} android-all-${ROBOLECTRIC_VERSION}$ext )
( cd ${JAR_DIR} && gpg -ab android-all-${ROBOLECTRIC_VERSION}$ext )
done

echo "Robolectric: Creating bundle for Sonatype upload..."
Expand Down Expand Up @@ -90,4 +84,4 @@ generate_empty_javadoc
build_signed_packages
mavenize

echo "DONE!!"
echo "DONE!!"

0 comments on commit be9dada

Please sign in to comment.