From ddeb976e63c8c73455d0ad3527552ac363845f03 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Thu, 13 May 2021 15:31:08 -0700 Subject: [PATCH] update windows to add Google gtsr1 root cert for futur proofing pub get calls to pub.dartlang.org --- README.md | 1 + windows/Dockerfile | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 13abdc8..6aa55d8 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ These docker containers are built on containers from [cirrusci](https://hub.docker.com/u/cirrusci) ([cirruslabs](https://github.com/cirruslabs)). - linux-dev is just cirrusci/flutter:dev + apt installing the needed utils +- windows-dev-sdk30-fdev2.3rc is cirrusci/android-sdk:30-windowsservercore-2019 with Visual Studio 16, Flutter dev (2.3rc), and Google Root cert gtsr1 (for future proofing pub get) - windows-dev-sdk30-fdev2.2rc is cirrusci/android-sdk:30-windowsservercore-2019 with Visual Studio 16, and Flutter dev (2.2rc) These docker containers are both being used with Drone CI to build Flutter desktop apps for Linux and Windows. Simply run `flutter build` with the appropriate OS. These containers should work with any other Docker based automated build system such as Gitlab and others. diff --git a/windows/Dockerfile b/windows/Dockerfile index abc2540..5d5820c 100644 --- a/windows/Dockerfile +++ b/windows/Dockerfile @@ -24,6 +24,12 @@ RUN C:\TEMP\vs_buildtools.exe --quiet --wait --norestart --nocache \ --installPath C:\BuildTools \ || IF "%ERRORLEVEL%"=="3010" EXIT 0 +# Install Google Root R1 cert so pub.dartlang.org stays working + +ADD https://pki.goog/repo/certs/gtsr1.pem C:/TEMP/gtsr1.pem +RUN powershell.exe -Command \ + Import-Certificate -FilePath C:\TEMP\gtsr1.pem -CertStoreLocation Cert:\LocalMachine\Root + # Install Flutter RUN setx path "%path%;C:\flutter\bin;C:\flutter\bin\cache\dart-sdk\bin;"