diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-03-17 22:19:18 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-03-17 22:19:18 +0900 |
| commit | facdf9357e576f6d47e7dd23f4f7b2b34f6a8d30 (patch) | |
| tree | 21c6aee60b3ddc26ff88ee3273c887125bb5828f /tools | |
| parent | c739bbfa7cbb68a51755254d59abf15e514795ca (diff) | |
| download | PHPerKaigi2025-tokens-facdf9357e576f6d47e7dd23f4f7b2b34f6a8d30.tar.gz PHPerKaigi2025-tokens-facdf9357e576f6d47e7dd23f4f7b2b34f6a8d30.tar.zst PHPerKaigi2025-tokens-facdf9357e576f6d47e7dd23f4f7b2b34f6a8d30.zip | |
commit files
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/compile-php-to-wasm.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/compile-php-to-wasm.sh b/tools/compile-php-to-wasm.sh new file mode 100755 index 0000000..60806e7 --- /dev/null +++ b/tools/compile-php-to-wasm.sh @@ -0,0 +1,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 |
