forked from mirrors/protonmail-bridge-docker
Patch for 32 bit build
This commit is contained in:
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: build from source
|
name: Build docker image
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ EXPOSE 143/tcp
|
|||||||
|
|
||||||
# Install dependencies and protonmail bridge
|
# Install dependencies and protonmail bridge
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends socat pass libsecret-1-0 ca-certificates dbus \
|
&& apt-get install -y --no-install-recommends socat pass libsecret-1-0 ca-certificates dbus-x11 \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Copy bash scripts
|
# Copy bash scripts
|
||||||
|
|||||||
20
build.sh
20
build.sh
@@ -15,17 +15,11 @@ ls /build
|
|||||||
rm -rf internal/frontend/cli
|
rm -rf internal/frontend/cli
|
||||||
cp -r /build/http_rest_frontend/cli internal/frontend/cli
|
cp -r /build/http_rest_frontend/cli internal/frontend/cli
|
||||||
|
|
||||||
# Build
|
# Workaround for 32bit build. More details can be found in:
|
||||||
if ! make build-nogui ; then
|
# https://github.com/antlr/antlr4/issues/2433#issuecomment-774514106
|
||||||
# If build fails it's probably because it is a 32bit
|
if [[ $(uname -m) == "armv7l" ]]; then
|
||||||
# system and there was a overflow error on the parser
|
find $(go env GOPATH)/pkg/mod/github.com/\!proton\!mail/go-rfc5322*/ -type f -exec sed -i.bak 's/(1<</(int64(1)<</g' {} +
|
||||||
# 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' {} +
|
|
||||||
|
|
||||||
# Try again after implementing the workaround
|
|
||||||
# make build-nogui
|
|
||||||
|
|
||||||
uname -m
|
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Build
|
||||||
|
make build-nogui
|
||||||
|
|||||||
Reference in New Issue
Block a user