From facdf9357e576f6d47e7dd23f4f7b2b34f6a8d30 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 17 Mar 2025 22:19:18 +0900 Subject: commit files --- tools/compile-php-to-wasm.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 tools/compile-php-to-wasm.sh (limited to 'tools') 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 -- cgit v1.2.3-70-g09d2