bundle more DLLs with windows build

This commit is contained in:
Henry Hiles 2026-09-28 21:06:32 -04:00
commit 5aa8d40dc6
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -20,6 +20,7 @@ jobs:
uses: subosito/flutter-action@v2 uses: subosito/flutter-action@v2
with: with:
flutter-version: 3.47.4 flutter-version: 3.47.4
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v6 uses: actions/setup-go@v6
with: with:
@ -51,6 +52,18 @@ jobs:
cp /mingw64/bin/libwinpthread-1.dll build/windows/x64/runner/Release/ cp /mingw64/bin/libwinpthread-1.dll build/windows/x64/runner/Release/
cp /mingw64/bin/libstdc++-6.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: |
$vs = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" `
-latest -products * -property installationPath
$crt = Get-ChildItem "$vs\VC\Redist\MSVC" -Recurse -Filter "VCRUNTIME140_1.dll" |
Where-Object { $_.FullName -match '\\x64\\Microsoft\.VC143\.CRT\\' } |
Select-Object -First 1
Copy-Item "$($crt.Directory)\*.dll" "build/windows/x64/runner/Release/" -Force
- name: Install Inno Setup - name: Install Inno Setup
run: choco install innosetup -y run: choco install innosetup -y