Skip to content
17 changes: 13 additions & 4 deletions earthly/flutter/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ INSTALL_FLUTTER:

# flutter-base installs required tools and packages.
flutter-base:
ARG CHROME_FOR_TESTING=false
ARG CHROME_VERSION=132.0.6834.83
ARG FIREFOX_VERSION=115.15.0esr-1
ARG EDGE_VERSION=125.0.2535.51

FROM debian+common

ENV DEBIAN_FRONTEND=noninteractive
Expand All @@ -56,10 +61,14 @@ flutter-base:

WORKDIR frontend

# DO installer+INSTALL_CHROME_LINUX64 --version=141.0.7390.122
DO installer+INSTALL_CHROME_FOR_TESTING --version=141.0.7390.122
DO installer+INSTALL_FIREFOX_LINUX64 --version=115.15.0esr-1
DO installer+INSTALL_EDGE_LINUX64 --version=125.0.2535.51
IF [ $CHROME_FOR_TESTING = true ]
DO installer+INSTALL_CHROME_FOR_TESTING --version=$CHROME_VERSION
ELSE
DO installer+INSTALL_CHROME_LINUX64 --version=$CHROME_VERSION
END

DO installer+INSTALL_FIREFOX_LINUX64 --version=$FIREFOX_VERSION
DO installer+INSTALL_EDGE_LINUX64 --version=$EDGE_VERSION

# test-flutter-base: installs required tools and packages for flutter development.
test-flutter-base:
Expand Down
7 changes: 5 additions & 2 deletions earthly/flutter/installer/Earthfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
VERSION 0.8

# cspell: words Rxxxx
# cspell: words Rxxxx
# cspell: ignoreRegExp lib[f-x]

# An AWS S3 bucket is used to store browser and driver packages.
# Packages are updated automatically once a week.
Expand Down Expand Up @@ -125,7 +126,9 @@ INSTALL_CHROMIUM:
RUN printf "${BLUE} Installing ${PACKAGE_TYPE} version: ${version}..." \
&& curl -sSL -o /opt/${PACKAGE_TYPE}.zip ${DOWNLOAD_URL} \
&& unzip /opt/${PACKAGE_TYPE}.zip -d /opt/${PACKAGE_TYPE} \
&& gdebi -n /opt/${PACKAGE_TYPE}/lib*.deb \
&& gdebi -n /opt/${PACKAGE_TYPE}/libx*.deb \
&& gdebi -n /opt/${PACKAGE_TYPE}/libf*.deb \
&& gdebi -n /opt/${PACKAGE_TYPE}/libo*.deb \
&& gdebi -n /opt/${PACKAGE_TYPE}/chromium-common*.deb \
&& gdebi -n /opt/${PACKAGE_TYPE}/chromium_*.deb \
&& rm -rf /opt/${PACKAGE_TYPE}*
Expand Down
Loading