File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments