Skip to content

Commit 71f3628

Browse files
committed
Don't build windows FFI libmwebd.dll
1 parent 0a1eaf1 commit 71f3628

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,23 @@ jobs:
239239
- name: Get dependencies
240240
run: flutter pub get
241241

242+
# Stack Wallet uses mwebd.exe as a subprocess on Windows, not the FFI
243+
# DLL, so we don't need libmwebd.dll. The upstream plugin's Windows
244+
# build path requires WSL, which the GitHub runner lacks.
245+
- name: Patch flutter_mwebd to skip Windows FFI build (CI workaround)
246+
run: |
247+
set -euo pipefail
248+
cache_root="$(cygpath -u "$LOCALAPPDATA")/Pub/Cache/hosted/pub.dev"
249+
plugin_dir=$(find "$cache_root" -maxdepth 1 -type d -name 'flutter_mwebd-*' -print -quit)
250+
if [ -z "$plugin_dir" ] || [ ! -f "$plugin_dir/pubspec.yaml" ]; then
251+
echo "::error::Could not locate flutter_mwebd in $cache_root"
252+
exit 1
253+
fi
254+
pubspec="$plugin_dir/pubspec.yaml"
255+
echo "Patching $pubspec"
256+
sed -i '/^ windows:$/,/^ ffiPlugin: true$/d' "$pubspec"
257+
flutter pub get
258+
242259
- name: Create git_versions.dart stubs
243260
run: |
244261
mkdir -p crypto_plugins/flutter_libepiccash/lib

0 commit comments

Comments
 (0)