mirror of
https://github.com/shenxn/protonmail-bridge-docker.git
synced 2025-12-06 00:17:10 +00:00
Switch to carlosedp/golang for riscv64 support
This commit is contained in:
parent
6a2a413d0a
commit
252397a86d
@ -1,7 +1,8 @@
|
|||||||
FROM golang:1.18 AS build
|
# Use carlosedp/golang for riscv64 support
|
||||||
|
FROM carlosedp/golang:1.18 AS build
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN apt-get update && apt-get install -y libsecret-1-dev
|
RUN apt-get update && apt-get install -y git build-essential libsecret-1-dev
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
WORKDIR /build/
|
WORKDIR /build/
|
||||||
|
|||||||
@ -9,14 +9,15 @@ git clone https://github.com/ProtonMail/proton-bridge.git
|
|||||||
cd proton-bridge
|
cd proton-bridge
|
||||||
git checkout v$VERSION
|
git checkout v$VERSION
|
||||||
|
|
||||||
# Build
|
ARCH=$(uname -m)
|
||||||
if ! make build-nogui ; then
|
if [[ $ARCH == "armv7l" ]] ; then
|
||||||
# If build fails it's probably because it is a 32bit
|
# This is expected to fail, and we use the following patch to fix
|
||||||
# system and there was a overflow error on the parser
|
make build-nogui || true
|
||||||
|
# For 32bit architectures, there was a overflow error on the parser
|
||||||
# This is a workaround for this problem found at:
|
# This is a workaround for this problem found at:
|
||||||
# https://github.com/antlr/antlr4/issues/2433#issuecomment-774514106
|
# 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' {} +
|
find $(go env GOPATH)/pkg/mod/github.com/\!proton\!mail/go-rfc5322*/ -type f -exec sed -i.bak 's/(1<</(int64(1)<</g' {} +
|
||||||
|
|
||||||
# Try again after implementing the workaround
|
|
||||||
make build-nogui
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Build
|
||||||
|
make build-nogui
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user