-
-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Simplre reproducible builds * clone the branch you're reproducing * fix branch/tag argument taking + use master as default * be able to execute build.sh more than once * Simplifiying process * Updating rn-nodeify to 10.3.0 to avoid issue * Deleting compile and Dockerfile as they're not used anymore * Updated simplified build script and README file with instructions to build * Simplify / beautify build script * Commenting out the singning process for release in build.gradle * Build and sign every apk * Cut apk location up to current location for easy location of files * Remove signing code * Delete unused variables * Updated instructions * README: update reproducible instructions * build.sh: lock in Docker image version reactnativecommunity/react-native-android:5.4 Co-authored-by: Evan Kaloudis <[email protected]>
- Loading branch information
Showing
4 changed files
with
43 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
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,20 @@ | ||
#!/bin/bash | ||
BUILDER_IMAGE="reactnativecommunity/react-native-android:5.4" | ||
CONTAINER_NAME="zeus_builder_container" | ||
ZEUS_PATH=/olympus/zeus | ||
|
||
docker run --rm --name $CONTAINER_NAME -v `pwd`:$ZEUS_PATH $BUILDER_IMAGE bash -c \ | ||
'echo -e "\n\n********************************\n*** Building Zeus...\n********************************\n" && \ | ||
cd /olympus/zeus ; yarn install && \ | ||
cd /olympus/zeus/android ; ./gradlew assembleRelease && \ | ||
echo -e "\n\n********************************\n**** APKs and MD5\n********************************\n" && \ | ||
cd /olympus/zeus && \ | ||
for f in android/app/build/outputs/apk/release/*.apk; | ||
do | ||
RENAMED_FILENAME=$(echo $f | sed -e "s/app-/zeus-/" | sed -e "s/-release-unsigned//") | ||
mv $f $RENAMED_FILENAME | ||
md5sum $RENAMED_FILENAME | ||
done && \ | ||
echo -e "\n" '; | ||
|
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