use old build structure and update to golang 1.25

This commit is contained in:
2025-10-14 16:35:46 +02:00
parent 55237e92e3
commit 1428582834
2 changed files with 29 additions and 9 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/bin/bash
set -ex
VERSION=`cat VERSION`
# 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