Skip to content

Commit

Permalink
include vc redist dlls
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurHeitmann committed Aug 11, 2024
1 parent 525e62e commit ba56f70
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/CI_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ jobs:
- name: Extract assets
shell: cmd
run: 7z x ${{ runner.temp }}/assets.7z -o.\assets

- name: Download visual c++ redistributable
run: |
$url = "https://aka.ms/vs/17/release/vc_redist.x64.exe"
$output = "${{ runner.temp }}\vc_redist.x64.exe"
Invoke-WebRequest -Uri $url -OutFile $output
- name: Install visual c++ 2022 redistributable
shell: cmd
run: ${{ runner.temp }}\vc_redist.x64.exe /quiet /install

- name: Setup Flutter
uses: subosito/flutter-action@v2
Expand All @@ -35,6 +44,16 @@ jobs:

- name: Build Release
run: flutter build windows --release

- name: Copy dlls
run: |
$dlls_names = @('vcruntime140_1.dll', 'msvcp140.dll', 'vcruntime140.dll')
$destination1 = "build\windows\x64\runner\Release"
$destination2 = "build\windows\x64\runner\Release\data\flutter_assets\assets\bins\vgmStream"
foreach ($dll in $dlls_names) {
Copy-Item -Path "C:\Windows\System32\$dll" -Destination $destination1 -Force
Copy-Item -Path "C:\Windows\System32\$dll" -Destination $destination2 -Force
}
- name: Archive Release
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit ba56f70

Please sign in to comment.