mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 19:40:18 +00:00
up
This commit is contained in:
parent
40ff60f0f4
commit
c1d24406ac
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -26,6 +26,8 @@ jobs:
|
|||||||
- name: Compiling
|
- name: Compiling
|
||||||
run: |
|
run: |
|
||||||
bash build_wasm.sh
|
bash build_wasm.sh
|
||||||
|
mkdir -p output/web/lib
|
||||||
|
cp web/lib/* output/web/lib
|
||||||
- uses: crazy-max/ghaction-github-pages@v3
|
- uses: crazy-max/ghaction-github-pages@v3
|
||||||
with:
|
with:
|
||||||
target_branch: gh-pages
|
target_branch: gh-pages
|
||||||
|
@ -36,6 +36,10 @@
|
|||||||
// The value below is injected by flutter build, do not touch.
|
// The value below is injected by flutter build, do not touch.
|
||||||
var serviceWorkerVersion = null;
|
var serviceWorkerVersion = null;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<!-- This script initializes WASM of pocketpy -->
|
||||||
|
<script src="./lib/pocketpy.js"></script>
|
||||||
|
|
||||||
<!-- This script adds the flutter initialization JS code -->
|
<!-- This script adds the flutter initialization JS code -->
|
||||||
<script src="flutter.js" defer></script>
|
<script src="flutter.js" defer></script>
|
||||||
</head>
|
</head>
|
||||||
|
@ -43,7 +43,7 @@ class VM {
|
|||||||
|
|
||||||
PyOutput read_output() {
|
PyOutput read_output() {
|
||||||
var _o = _Bindings.pkpy_vm_read_output(pointer);
|
var _o = _Bindings.pkpy_vm_read_output(pointer);
|
||||||
String _j = _o.toDartString();
|
String _j = _o;
|
||||||
var ret = PyOutput.fromJson(cvt.jsonDecode(_j));
|
var ret = PyOutput.fromJson(cvt.jsonDecode(_j));
|
||||||
_Bindings.pkpy_delete(_o);
|
_Bindings.pkpy_delete(_o);
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user