-
-
Notifications
You must be signed in to change notification settings - Fork 69
/
build.sh
executable file
·19 lines (17 loc) · 914 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
# reactnativecommunity/react-native-android:13.0
BUILDER_IMAGE="reactnativecommunity/react-native-android@sha256:4ff9c9f80da57c72284900fcfdbd079183e735684c62d7fafd3df50fdb895453"
CONTAINER_NAME="blixt_builder_container"
BLIXT_PATH=/blixt
docker run --rm -it --name $CONTAINER_NAME -v `pwd`:$BLIXT_PATH $BUILDER_IMAGE bash -c \
'echo -e "\n\n********************************\n*** Building Blixt...\n********************************\n" && \
cd /blixt ; yarn build-unsigned-android
echo -e "\n\n********************************\n**** APKs and SHA256 Hashes\n********************************\n" && \
cd /blixt && \
for f in android/app/build/outputs/apk/release/*.apk;
do
RENAMED_FILENAME=$(echo $f | sed -e "s/app-/blixt-/" | sed -e "s/-release-unsigned//")
mv $f $RENAMED_FILENAME
sha256sum $RENAMED_FILENAME
done && \
echo -e "\n" ';