Build Linux and macOS clients with platform update feeds

This commit is contained in:
2026-11-08 16:45:42 +00:00
parent b7f439a94f
commit 36f73bb89d
17 changed files with 913 additions and 9 deletions
+7
View File
@@ -23,6 +23,13 @@ RUN mkdir -p /home/builder/.pub-cache \
COPY build.sh /usr/local/bin/pipelines-app-build
WORKDIR /tmp
FROM web AS linux
RUN apt-get update \
&& apt-get install -y --no-install-recommends clang cmake ninja-build pkg-config libgtk-3-dev libstdc++-12-dev liblzma-dev \
&& rm -rf /var/lib/apt/lists/* \
&& flutter precache --linux \
&& chmod -R a+rwX /opt/flutter /home/builder
FROM web AS android
ARG ANDROID_CMDLINE_TOOLS=13114758
RUN apt-get update \
+5
View File
@@ -8,6 +8,7 @@ rm -rf /tmp/work && mkdir -p /tmp/work
# A private copy: the host checkout's build outputs and machine paths stay out.
(cd /src && tar --exclude=./build --exclude=./.dart_tool --exclude=./android/.gradle \
--exclude=./android/local.properties --exclude=./android/app/.cxx --exclude=./ios/Pods \
--exclude=./macos/Pods --exclude=./macos/Flutter/ephemeral --exclude=./linux/flutter/ephemeral \
-cf - .) | tar -C /tmp/work -xf -
cd /tmp/work
flutter pub get
@@ -31,6 +32,10 @@ PROPERTIES
flutter build apk --release "$@"
cp build/app/outputs/flutter-apk/app-release.apk /out/pipelines.apk
;;
linux)
flutter build linux --release "$@"
cp -a build/linux/x64/release/bundle/. /out/
;;
*)
echo "unknown build: $kind" >&2
exit 2