Skip to content

Commit

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

- name: Download visual c++ redistributable
- name: Download and install 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
Invoke-WebRequest -Uri "https://aka.ms/vs/17/release/vc_redist.x64.exe" -OutFile "${{ runner.temp }}\vc_redist.x64.exe"
Invoke-WebRequest -Uri "https://aka.ms/vs/17/release/vc_redist.x86.exe" -OutFile "${{ runner.temp }}\vc_redist.x86.exe"
${{ runner.temp }}\vc_redist.x64.exe /quiet /install
${{ runner.temp }}\vc_redist.x86.exe /quiet /install
- name: Setup Flutter
uses: subosito/flutter-action@v2
Expand All @@ -52,8 +50,8 @@ jobs:
$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
}
Copy-Item -Path "C:\Windows\SysWOW64\vcruntime140.dll" -Destination $destination2 -Force
- name: Archive Release
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit 60df5fa

Please sign in to comment.