aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/compile-php-to-wasm.sh
blob: 60806e774d8a46a5f2a72f3f0101d3cdd83a735b (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

set -eux

cd wasm
docker build -t phperkaigi2025-tokens-php-wasm .
docker create --name phperkaigi2025-tokens-php-wasm-tmp-container phperkaigi2025-tokens-php-wasm
docker cp phperkaigi2025-tokens-php-wasm-tmp-container:/src/php-wasm.js ../src/php-wasm-bridge.js
docker cp phperkaigi2025-tokens-php-wasm-tmp-container:/src/php-wasm.wasm ../public/php-wasm.wasm
docker rm phperkaigi2025-tokens-php-wasm-tmp-container