Skip to content

Commit

Permalink
Include Visual C++ redistributables for Windows build (flutter#320)
Browse files Browse the repository at this point in the history
* Copy VC redistributables

* Use target not os
  • Loading branch information
perclasson authored Sep 22, 2020
1 parent 460dd20 commit 6f6bd1c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }} .
Expand Down

0 comments on commit 6f6bd1c

Please sign in to comment.