-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from TheLastProject/updates
Update dependencies + minor fixes
- Loading branch information
Showing
19 changed files
with
273 additions
and
179 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
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
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
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
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
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
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
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
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,49 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
IFS=$'\n\t' | ||
|
||
### build.sh | ||
### Builds Raise to Answer reproducibly | ||
|
||
if [ -z "${ANDROID_SDK_ROOT:-}" ]; then | ||
echo "ANDROID_SDK_ROOT is not set, setting to $HOME/Android/Sdk"; | ||
export ANDROID_SDK_ROOT=$HOME/Android/Sdk | ||
fi | ||
|
||
if [ -z "${JAVA_HOME:-}" ]; then | ||
echo "JAVA_HOME is not set, setting to Java 17" | ||
if [ -f "/etc/debian_version" ]; then | ||
echo "Debian-based distro, Java 17 is /usr/lib/jvm/java-17-openjdk-amd64" | ||
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 | ||
else | ||
echo "Not Debian-based, assuming Fedora and setting Java 17 as /usr/lib/jvm/java-17-openjdk" | ||
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk | ||
fi | ||
fi | ||
|
||
echo "Starting build" | ||
./gradlew clean assembleRelease | ||
|
||
echo "Build finished (unsigned)" | ||
echo "Your build is at app/build/outputs/apk/release/app-release-unsigned.apk" | ||
|
||
if [ -z "${KEYSTORE:-}" ]; then | ||
echo "KEYSTORE not set, skipping signing..." | ||
else | ||
if [ -z "${KEYSTORE_ALIAS:-}" ]; then | ||
echo "KEYSTORE_ALIAS is not set, setting to raisetoanswer" | ||
KEYSTORE_ALIAS=raisetoanswer | ||
fi | ||
|
||
apksigner_version="$(ls -1 "$HOME/Android/Sdk/build-tools/" | tail -n 1)" | ||
cp app/build/outputs/apk/release/app-release-unsigned.apk app/build/outputs/apk/release/app-release.apk | ||
"$HOME/Android/Sdk/build-tools/$apksigner_version/apksigner" sign -v --ks "$KEYSTORE" --ks-key-alias "$KEYSTORE_ALIAS" app/build/outputs/apk/release/app-release.apk | ||
|
||
echo "Build finished (signed)" | ||
echo "Your build is at app/build/outputs/apk/release/app-release.apk" | ||
fi | ||
|
||
pushd app/build/outputs/apk/release/ | ||
sha256sum -- *.apk > SHA256SUMS | ||
popd | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Binary file not shown.
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#Mon Aug 02 18:50:31 CEST 2021 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip | ||
distributionPath=wrapper/dists | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.