-
-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reproducible build: we also need a build script.
Part of #418.
- Loading branch information
1 parent
3ce0e2c
commit fba09bc
Showing
2 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64/ | ||
|
||
JAVA_VERSION=`java --version` | ||
if [[ $JAVA_VERSION != "openjdk 17."* ]]; then | ||
echo "OpenJDK version should be 17.X" | ||
exit -1; | ||
fi | ||
|
||
RELEASE_STORE_PASSWORD= | ||
read -s -p "Enter store password: " RELEASE_STORE_PASSWORD | ||
echo "" | ||
read -s -p "Enter key alias: " RELEASE_KEY_ALIAS | ||
echo "" | ||
read -s -p "Enter key password: " RELEASE_KEY_PASSWORD | ||
echo "" | ||
|
||
./gradlew --no-configuration-cache \ | ||
clean \ | ||
assembleReproducibleRelease \ | ||
-Drelease_store_file=`ls ../*.jks` \ | ||
-Drelease_store_file="../keystore_opentracks.jks" \ | ||
-Drelease_store_password="$RELEASE_STORE_PASSWORD" \ | ||
-Drelease_key_alias="$RELEASE_KEY_ALIAS" \ | ||
-Drelease_key_password="$RELEASE_KEY_PASSWORD" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters