Update generate.sh

This commit is contained in:
uazo 2023-01-31 12:26:05 +05:00 committed by GitHub
parent 1dd51fda9b
commit 775ca2f448
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
#!/bin/bash
if [[ -z "${DOCKER_SOCK}" ]]; then
echo "Please set DOCKER_SOCK env variable"
if [[ -z "${INDEX_VERSION}" ]]; then
echo "Please set INDEX_VERSION env variable"
exit 1
fi
@ -10,10 +10,9 @@ if [[ -z "${DEV_CONTAINER}" ]]; then
exit 1
fi
sudo docker -H $DOCKER_SOCK cp $DEV_CONTAINER:/home/lg/working_dir/chromium/src/out/bromite/bromite.idx .
sudo docker -H $DOCKER_SOCK cp $DEV_CONTAINER:/home/lg/working_dir/bromite/build/RELEASE .
cp /storage/images/android/x64/$INDEX_VERSION/bromite.idx .
cp /storage/images/android/x64/$INDEX_VERSION/RELEASE
#INDEX_VERSION=$(cat RELEASE)
DOCKER_BUILDKIT=1 docker build -t uazo/bromite-remote-index:$INDEX_VERSION \
--progress plain \
--no-cache \