fix: linux builds (#3485)

This commit is contained in:
cyan
2026-08-07 22:10:27 +02:00
committed by GitHub
parent b60b5a59f7
commit 43cd125942
15 changed files with 288 additions and 71 deletions
+1
View File
@@ -4,6 +4,7 @@ FROM --platform=linux/amd64 ${BASE_IMAGE} AS build
RUN mkdir -p /w/scripts/android
COPY scripts/prepare_reown.sh /w/scripts/prepare_reown.sh
COPY scripts/android/build_reown_deps.sh /w/scripts/android/build_reown_deps.sh
RUN cd $(dirname $(which flutter)) && git checkout 3.32.0
RUN /w/scripts/android/build_reown_deps.sh \
&& rm -rf /w/scripts/reown_flutter/packages/reown_core/.dart_tool \
&& rm -rf /w/scripts/reown_flutter/packages/reown_sign/.dart_tool \
+9
View File
@@ -4,6 +4,15 @@ FROM --platform=linux/amd64 ${BASE_IMAGE} AS build
COPY scripts/prepare_torch.sh /w/scripts/prepare_torch.sh
COPY scripts/android/build_torch.sh /w/scripts/android/build_torch.sh
ARG UID=10001
ARG GID=10001
ARG USER=builder
RUN groupadd -g "$GID" "$USER" && \
useradd -m -u "$UID" -g "$GID" -s /bin/bash "$USER"
RUN sudo chown $UID:$GID -R /w /root
USER builder
RUN /w/scripts/android/build_torch.sh && rm -rf /w/scripts/torch_dart/simplybs
FROM --platform=linux/amd64 alpine