MoUI is a multi-platform MoonBit GUI framework
Dependencies
View[Msg] -> internal view tree -> ElementTree -> LayoutTree -> RenderTree -> DrawCommand -> renderermoon update
node scripts/validate-window-dependency.mjs
sh scripts/check.sh --profile dailysh scripts/check.sh --profile platformgit clone git@github.com:moui-mbt/moui_example.git
cd moui_example
moon update.mooncakes/wzzc-dev/moui/mobile/template.mobile.json
.mooncakes/wzzc-dev/moui/mobile/android/template/
.mooncakes/wzzc-dev/moui/mobile/ios/template/.mooncakes/wzzc-dev/moui/scripts/mobile/build-android-apk.sh \
--workspace-root "$PWD" \
--moui-root "$PWD/.mooncakes/wzzc-dev/moui" \
--app my_app \
--app-config "$PWD/mobile.json" \
--android-project "$PWD/android_app".mooncakes/wzzc-dev/moui/scripts/mobile/build-ios-app.sh \
--workspace-root "$PWD" \
--moui-root "$PWD/.mooncakes/wzzc-dev/moui" \
--app my_app \
--app-config "$PWD/mobile.json" \
--xcode-project "$PWD/ios_app/MoUIMobileApp.xcodeproj" \
--scheme MoUIMobileApp \
--product-name MoUIMobileAppmoon build website/web_wasm --target wasm-gc
python3 -m http.server 8080 --bind 127.0.0.1http://127.0.0.1:8080/website/web_wasm/index.htmlmoon build examples/showcase/web_wasm --target wasm-gc
python3 -m http.server 8080 --bind 127.0.0.1http://127.0.0.1:8080/examples/showcase/web_wasm/index.htmlmoon build examples/markdown_editor/web_wasm --target wasm-gc
python3 -m http.server 8080 --bind 127.0.0.1http://127.0.0.1:8080/examples/markdown_editor/web_wasm/index.htmlmoon run examples/showcase/macos_skia --target nativemoon build examples/showcase/macos_wgpu --target native
moon build examples/showcase/macos_wgpu_cosmic --target native
moon build examples/showcase/macos_sun --target nativemoon run examples/markdown_editor/macos_skia --target nativemoon run examples/excel/macos_skia --target nativeMOUI_PDFIUM_DISABLE_PREBUILD_PDFIUM=1 moon test examples/pdf_workbench/app --target native
MOUI_PDFIUM_DISABLE_PREBUILD_PDFIUM=1 moon test examples/pdf_workbench/pdflite_adapter --target native
moon test examples/pdf_workbench/pdfium_adapter --target native
moon build examples/pdf_workbench/macos_skia --target native
./_build/native/debug/build/examples/pdf_workbench/macos_skia/macos_skia.exemoon build examples/markdown_editor/macos_wgpu --target native
./_build/native/debug/build/examples/markdown_editor/macos_wgpu/macos_wgpu.exemoon run examples/mo_workbench/macos_skia --target nativesh scripts/package-macos-app.sh \
--package examples/showcase/macos_skia \
--name "MoUI Showcase" \
--bundle-id dev.wzzc.moui.showcase \
--version 0.1.0winget install --id Microsoft.VisualStudio.2022.BuildTools -e
powershell -ExecutionPolicy Bypass -File .\scripts\windows\setup_msvc_deps.ps1 -InstallZlib
powershell -ExecutionPolicy Bypass -File .\scripts\windows\build_windows_msvc.ps1 `
-Package examples/showcase/windows_skia `
-BuildOnly
powershell -ExecutionPolicy Bypass -File .\scripts\windows\package_windows_app_msvc.ps1 `
-Package examples/showcase/windows_skia `
-AppName MoUIShowcase `
-Version 0.1.0powershell -ExecutionPolicy Bypass -File .\scripts\windows\build_windows_msvc.ps1 `
-Package examples/showcase/windows_wgpu `
-BuildOnly
powershell -ExecutionPolicy Bypass -File .\scripts\windows\build_windows_msvc.ps1 `
-Package examples/showcase/windows_wgpu_cosmic `
-BuildOnlypowershell -ExecutionPolicy Bypass -File .\scripts\windows\build_windows_msvc.ps1 `
-Package examples/markdown_editor/windows_skia `
-BuildOnlypowershell -ExecutionPolicy Bypass -File .\scripts\windows\build_windows_msvc.ps1 `
-Package examples/markdown_editor/windows_wgpu `
-BuildOnlypowershell -ExecutionPolicy Bypass -Command "& { . .\scripts\windows\msvc_env.ps1; moon run examples/showcase/windows_skia --target native }"
powershell -ExecutionPolicy Bypass -Command "& { . .\scripts\windows\msvc_env.ps1; moon run examples/markdown_editor/windows_skia --target native }". (Join-Path (Resolve-Path ".\.mooncakes\wzzc-dev\moui").Path "scripts\windows\msvc_env.ps1")
moon run your_app/windows_skia --target native. (Join-Path (Resolve-Path ".\.mooncakes\wzzc-dev\moui").Path "scripts\windows\msvc_env.ps1")
moon run your_app/windows_skia --target nativemoon run examples/showcase/linux_skia --target native
moon run examples/markdown_editor/linux_skia --target native
moon run examples/excel/linux_skia --target nativeInstall
Download zipMoUI is a multi-platform MoonBit GUI framework
Dependencies