From 44dc8bb18baddcca09864fbc8323c4a6df7ddc63 Mon Sep 17 00:00:00 2001 From: Doro Wu Date: Fri, 24 Apr 2020 15:00:01 +0800 Subject: [PATCH] fix: novnc language (#174) --- Dockerfile.amd64 | 1 + Dockerfile.arm64 | 1 + Dockerfile.armhf | 1 + Dockerfile.j2 | 1 + 4 files changed, 4 insertions(+) diff --git a/Dockerfile.amd64 b/Dockerfile.amd64 index 041d663..ca67a9f 100644 --- a/Dockerfile.amd64 +++ b/Dockerfile.amd64 @@ -99,6 +99,7 @@ COPY web /src/web RUN cd /src/web \ && yarn \ && yarn build +RUN sed -i 's#app/locale/#novnc/app/locale/#' /src/web/dist/static/novnc/app/ui.js diff --git a/Dockerfile.arm64 b/Dockerfile.arm64 index 2330d3e..d9fb545 100644 --- a/Dockerfile.arm64 +++ b/Dockerfile.arm64 @@ -99,6 +99,7 @@ COPY web /src/web RUN cd /src/web \ && yarn \ && npm run build +RUN sed -i 's#app/locale/#novnc/app/locale/#' /src/web/dist/static/novnc/app/ui.js RUN cd /src/web/dist/static/novnc && patch -p0 < /src/web/novnc-armhf-1.patch diff --git a/Dockerfile.armhf b/Dockerfile.armhf index c7e1b6b..a0640a6 100644 --- a/Dockerfile.armhf +++ b/Dockerfile.armhf @@ -107,6 +107,7 @@ COPY web /src/web RUN cd /src/web \ && yarn \ && yarn run build +RUN sed -i 's#app/locale/#novnc/app/locale/#' /src/web/dist/static/novnc/app/ui.js # build frontend COPY web /src/web diff --git a/Dockerfile.j2 b/Dockerfile.j2 index fde152f..5c9039a 100644 --- a/Dockerfile.j2 +++ b/Dockerfile.j2 @@ -126,6 +126,7 @@ COPY web /src/web RUN cd /src/web \ && yarn \ && yarn build +RUN sed -i 's#app/locale/#novnc/app/locale/#' /src/web/dist/static/novnc/app/ui.js {%if arch == "armhf"%} RUN cd /src/web/dist/static/novnc && patch -p0 < /src/web/novnc-armhf-1.patch