diff --git a/.github/workflows/CI_windows.yml b/.github/workflows/CI_windows.yml index 11fdd9c..7904736 100644 --- a/.github/workflows/CI_windows.yml +++ b/.github/workflows/CI_windows.yml @@ -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 @@ -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