From 6f6bd1c917b0568ef0ac10c937a7457c4e2f5438 Mon Sep 17 00:00:00 2001 From: Per Classon Date: Tue, 22 Sep 2020 19:12:45 +0200 Subject: [PATCH] Include Visual C++ redistributables for Windows build (#320) * Copy VC redistributables * Use target not os --- .github/workflows/release.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 795af2a0a7..32cbe77fa4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -91,6 +91,13 @@ jobs: flutter create . flutter build -v ${{ matrix.target }} --release working-directory: code + - name: Copy VC redistributables to release directory + if: startsWith(matrix.target, 'windows') + run: | + Copy-Item (vswhere -find 'VC\Redist\MSVC\14.27.29016\x64\Microsoft.VC142.CRT\msvcp140.dll') . + Copy-Item (vswhere -find 'VC\Redist\MSVC\14.27.29016\x64\Microsoft.VC142.CRT\vcruntime140.dll') . + Copy-Item (vswhere -find 'VC\Redist\MSVC\14.27.29016\x64\Microsoft.VC142.CRT\vcruntime140_1.dll') . + working-directory: code\${{ matrix.path }} - name: Compress build for Linux and macOS if: startsWith(matrix.os, 'macOS') || startsWith(matrix.os, 'ubuntu') run: zip -r $GITHUB_WORKSPACE/flutter_gallery_${{ matrix.target }} .