forked from GitHub/gf-core
Move everything to javascript dir. Add jspgf API, test files for both Node and web.
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
#! /usr/bin/env bash
|
||||
set -e
|
||||
cd ../c
|
||||
|
||||
# Build inside Docker image
|
||||
IMAGE="gf/build-c-runtime-wasm"
|
||||
docker build . --file Dockerfile-wasm --tag $IMAGE
|
||||
docker build ../c --file Dockerfile --tag $IMAGE
|
||||
|
||||
# Copy bulit files from container to host
|
||||
docker run --rm --volume "$PWD":/tmp/host $IMAGE bash -c "cp pgf.js pgf.wasm /tmp/host/"
|
||||
mkdir -p .libs
|
||||
docker run --rm --volume "$PWD":/tmp/host $IMAGE bash -c "cp pgf.js pgf.wasm /tmp/host/.libs/"
|
||||
|
||||
Reference in New Issue
Block a user