Skip to content

Commit

Permalink
Re-build of dev-wasm32 as 1.0.3
Browse files Browse the repository at this point in the history
Update build script to ensure the WASM Docker image is rebuilt
every time (relies on Docker's cache) and therefore the version
of emscripten is up-to-date.

(Version 1.0.2 of dev-wasm32 package used an old emscripten.)
  • Loading branch information
lovell committed Mar 18, 2024
1 parent 5f044c3 commit 7d5110c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions build/wasm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ if [ "$VERSION_VIPS" != "$VERSION_VIPS_UPSTREAM" ]; then
fi

# Create container with emscripten
if [ -z "$(docker images -q ${TAG})" ]; then
pushd "${DIR}"
docker build -t "${TAG}" .
popd
fi
pushd "${DIR}"
docker build -t "${TAG}" .
popd

# Build libvips and dependencies as static Wasm libraries via emscripten
if [ ! -d "$DIR/build/target/lib" ]; then
docker run --rm -v "$PWD/${DIR}":/src "${TAG}" -c "./build.sh --disable-bindings --disable-modules --disable-jxl --enable-libvips-cpp"
else
echo "Skipping build: found existing files in $DIR/build/target"
fi

# Copy only the files we need
Expand Down
2 changes: 1 addition & 1 deletion npm/dev-wasm32/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@img/sharp-libvips-dev-wasm32",
"version": "1.0.2",
"version": "1.0.3",
"description": "Header files and static wasm32 libraries for libvips and dependencies to build sharp as wasm32",
"author": "Lovell Fuller <[email protected]>",
"homepage": "https://sharp.pixelplumbing.com",
Expand Down

0 comments on commit 7d5110c

Please sign in to comment.