diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 59ffe18c..3d8611f6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,6 +26,8 @@ jobs: - name: Compiling run: | bash build_wasm.sh + mkdir -p output/web/lib + cp web/lib/* output/web/lib - uses: crazy-max/ghaction-github-pages@v3 with: target_branch: gh-pages diff --git a/plugins/flutter/example/web/index.html b/plugins/flutter/example/web/index.html index 41b3bc33..f26a4fd2 100644 --- a/plugins/flutter/example/web/index.html +++ b/plugins/flutter/example/web/index.html @@ -36,6 +36,10 @@ // The value below is injected by flutter build, do not touch. var serviceWorkerVersion = null; + + + + diff --git a/plugins/flutter/lib/web.dart b/plugins/flutter/lib/web.dart index 9b22facb..7002a5c7 100644 --- a/plugins/flutter/lib/web.dart +++ b/plugins/flutter/lib/web.dart @@ -43,7 +43,7 @@ class VM { PyOutput read_output() { var _o = _Bindings.pkpy_vm_read_output(pointer); - String _j = _o.toDartString(); + String _j = _o; var ret = PyOutput.fromJson(cvt.jsonDecode(_j)); _Bindings.pkpy_delete(_o); return ret;