This commit is contained in:
blueloveTH 2022-12-28 20:52:03 +08:00
parent 40ff60f0f4
commit c1d24406ac
3 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -36,6 +36,10 @@
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = null;
</script>
<!-- This script initializes WASM of pocketpy -->
<script src="./lib/pocketpy.js"></script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
</head>

View File

@ -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;