windows: upgrade flutter to dev; add android license(fix parent container)

This commit is contained in:
Dan Ballard 2021-04-15 16:56:16 -07:00
parent 5de1307cef
commit 657d9db195
2 changed files with 14 additions and 9 deletions

View File

@ -1,5 +0,0 @@
FROM cirrusci/flutter:dev
RUN apt-get update
RUN apt-get install -y --no-install-recommends cmake ninja-build clang build-essential pkg-config libgtk-3-dev liblzma-dev lcov
RUN flutter config --enable-linux-desktop

View File

@ -21,9 +21,19 @@ RUN C:/TEMP/vs_buildtools.exe --quiet --wait --norestart --nocache \
# Install Flutter
ADD https://storage.googleapis.com/flutter_infra/releases/stable/windows/flutter_windows_2.0.4-stable.zip C:/TEMP/flutter.zip
# ADD https://storage.googleapis.com/flutter_infra/releases/stable/windows/flutter_windows_2.0.4-stable.zip C:/TEMP/flutter.zip
# RUN powershell -Command "expand-archive -Path 'C:\TEMP\flutter.zip' -DestinationPath 'c:\'"
#CMD ["powershell.exe", "Expand-Archive -LiteralPath 'C:\\TEMP\\flutter.zip' -DestinationPath 'C:\\'"]
RUN powershell -Command "expand-archive -Path 'C:\TEMP\flutter.zip' -DestinationPath 'c:\'"
RUN setx path "%path%;C:\flutter\bin;C:\flutter\bin\cache\dart-sdk\bin;"
RUN setx path "%path%;C:\flutter\bin"
RUN git clone --branch dev https://github.com/flutter/flutter.git C:\flutter
RUN flutter config --no-analytics
RUN flutter config --enable-windows-desktop
# Fix android sdk licenses (missing)
RUN powershell.exe -Command \
Set-Content -Value "`n859f317696f67ef3d7f30a50a5560e7834b43903" -Path C:\Android\licenses\android-sdk-arm-dbt-license
RUN flutter doctor -v