Skip to content

Commit 7d5110c

Browse files
committed
Re-build of dev-wasm32 as 1.0.3
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.)
1 parent 5f044c3 commit 7d5110c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

build/wasm.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ if [ "$VERSION_VIPS" != "$VERSION_VIPS_UPSTREAM" ]; then
3434
fi
3535

3636
# Create container with emscripten
37-
if [ -z "$(docker images -q ${TAG})" ]; then
38-
pushd "${DIR}"
39-
docker build -t "${TAG}" .
40-
popd
41-
fi
37+
pushd "${DIR}"
38+
docker build -t "${TAG}" .
39+
popd
4240

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

4848
# Copy only the files we need

npm/dev-wasm32/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@img/sharp-libvips-dev-wasm32",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "Header files and static wasm32 libraries for libvips and dependencies to build sharp as wasm32",
55
"author": "Lovell Fuller <npm@lovell.info>",
66
"homepage": "https://sharp.pixelplumbing.com",

0 commit comments

Comments
 (0)