# Euv Scripts
Unified environment provisioning, cross-platform build, theme packaging, benchmarking, and end-to-end verification scripts organized by responsibility.
## Directory Layout
```text
scripts/
├── bench/
│ ├── run-stress-report.py # Canonical release benchmark, stress-matrix, automation & report runner
│ └── stress-bench.sh # Backward-compatible shell entrypoint forwarding to run-stress-report.py
├── build/
│ ├── build-web.sh # Zero-JS WebAssembly release bundle (dist/web)
│ ├── build-ios-sim.sh # Release iOS Simulator .app build & launch
│ ├── build-android-apk.sh # Release Android & Wear OS (--wearos) native APK build & adb install
│ ├── build-harmony.sh # HarmonyOS / OpenHarmony Stage-Model XComponent host & native .so build
│ ├── build-wearable.sh # Smart wearable host generator (Wear OS, watchOS, HarmonyOS, Vela, Zepp)
│ ├── build-miniapp.sh # Super-app MiniApp host generator (WeChat, Alipay, Douyin, Baidu, QQ, Kuaishou)
│ ├── build-quickapp.sh # QuickApp Alliance & Huawei QuickApp host generator
│ ├── build-theme-variants.sh # Builds all 17 theme-feature WebAssembly showcase variants
│ └── write-release-manifest.py # Generates deterministic SHA-256 release inventory manifests
├── env/
│ ├── common.sh # Shared logging, OS/arch detection, and env loader
│ ├── doctor.sh # Multi-platform toolchain, VM, OpenHarmony & device diagnostics
│ ├── env.sh # Local environment exports (gitignored SDK/NDK/OHOS/WASM paths)
│ ├── generate-icon.py # Cross-platform app icon generator
│ ├── setup-all.sh # Full cross-platform environment bootstrap
│ ├── setup-rust.sh # Rust targets (16 triples incl. OHOS/watchOS) & WASM tools
│ ├── setup-web.sh # WebAssembly, Playwright & browser prerequisites
│ ├── setup-apple.sh # macOS / iOS / iPadOS / watchOS Xcode & Simulator check
│ ├── setup-android.sh # Automated Android & Wear OS SDK, adb, NDK, build-tools & AVD setup
│ ├── setup-harmony.sh # OpenHarmony native SDK (hdc, ohos-clang, ohpm) setup
│ └── setup-vm-emulators.sh # Linux ARM64 VM (QEMU/Lima) & Docker verification setup
└── test/
└── e2e-all.sh # Full E2E, observability, standards, release-stripping & cross-target checks
```
## Quick Start
```bash
./scripts/env/setup-android.sh # Provision Android SDK, NDK, adb, build-tools, AVD
./scripts/env/doctor.sh # Verify all 7 target toolchains & connected devices
./scripts/build/build-web.sh # Build zero-JS WebAssembly bundle
./scripts/build/build-theme-variants.sh # Build all 17 theme-feature WebAssembly variants
./scripts/build/build-android-apk.sh --install
./scripts/build/build-ios-sim.sh
./scripts/bench/stress-bench.sh # Run 27 benchmarks, stress matrix & automation release checks
./scripts/bench/stress-bench.sh --runs 5 --write-report # Update performance/BENCHMARK_REPORT.md
./scripts/test/e2e-all.sh # Run full E2E & release-stripping verification
```