Files
protonmail-bridge/build/build.sh
T
daniel156161 6d32d1a32f
Build and Push Docker Container / build-and-push (push) Has started running
update build that it use the VERSION file as Argument for gitea action build
2025-10-14 16:36:30 +02:00

20 lines
591 B
Bash

#!/bin/bash
set -ex
# Clone new code
sed -i 's/127.0.0.1/0.0.0.0/g' internal/constants/constants.go
ARCH=$(uname -m)
if [[ $ARCH == "armv7l" ]] ; then
# This is expected to fail, and we use the following patch to fix
make build-nogui || true
# For 32bit architectures, there was a overflow error on the parser
# This is a workaround for this problem found at:
# https://github.com/antlr/antlr4/issues/2433#issuecomment-774514106
find $(go env GOPATH)/pkg/mod/github.com/\!proton\!mail/go-rfc5322*/ -type f -exec sed -i.bak 's/(1<</(int64(1)<</g' {} +
fi
# Build
make build-nogui