From 72eebca36f577cbd953741b4fafda81fbebe1f01 Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Mon, 28 Sep 2026 21:06:32 -0400 Subject: [PATCH] bundle more DLLs with windows build --- .github/workflows/windows.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 4cb30cd..84d5a83 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -20,6 +20,7 @@ jobs: uses: subosito/flutter-action@v2 with: flutter-version: 3.47.4 + - name: Set up Go uses: actions/setup-go@v6 with: @@ -51,6 +52,21 @@ jobs: cp /mingw64/bin/libwinpthread-1.dll build/windows/x64/runner/Release/ cp /mingw64/bin/libstdc++-6.dll build/windows/x64/runner/Release/ + - name: Copy MSVC runtime DLLs + shell: powershell + run: | + $crt = Get-ChildItem "${env:ProgramFiles}\Microsoft Visual Studio\2022" -Recurse -Filter "MSVCP140.dll" | + Where-Object { $_.FullName -match '\\x64\\Microsoft\.VC143\.CRT\\' } | + Select-Object -First 1 + + if (-not $crt) { + throw "MSVC runtime not found" + } + + Copy-Item "$($crt.Directory)\MSVCP140.dll" "build/windows/x64/runner/Release/" -Force + Copy-Item "$($crt.Directory)\VCRUNTIME140.dll" "build/windows/x64/runner/Release/" -Force + Copy-Item "$($crt.Directory)\VCRUNTIME140_1.dll" "build/windows/x64/runner/Release/" -Force + - name: Install Inno Setup run: choco install innosetup -y