Elena Torró 38b990ef90
🔧 Add exporter headless backend (#10875)
*  Add headless wasm render backend to the exporter

* ♻️ Move render-wasm bridge to common and split wasm builds

* 🔧 Upload builtin font variants in the wasm exporter

* ♻️ Move shared font and resources utils out of render_wasm

*  Fetch only the exported roots in the wasm exporter

*  Bound save_layer rects in the vector export path
2026-08-06 16:13:06 +02:00

40 lines
916 B
Bash
Executable File

#!/usr/bin/env bash
_SCRIPT_DIR=$(dirname $0);
pushd $_SCRIPT_DIR;
# Enable debugging if the script is run with --debug
if [[ "$1" == "--debug" ]]; then
set -x
fi
. ./_build_env frontend
export CARGO_BUILD_TARGET=${CARGO_BUILD_TARGET:-"wasm32-unknown-emscripten"};
export SKIA_BINARIES_URL=${SKIA_BINARIES_URL:-"https://github.com/penpot/skia-binaries/releases/download/0.93.1/skia-binaries-319323662b1685a112f5-wasm32-unknown-emscripten-gl-svg-textlayout-binary-cache-webp.tar.gz"}
ALLOWED_RULES="-D static_mut_refs"
# ./lint --fix
if [[ "$1" == "--fix" ]]; then
cargo clippy \
--fix --allow-dirty \
--target=wasm32-unknown-emscripten \
--all-targets \
-- -D warnings \
$ALLOWED_RULES
else
cargo clippy \
--target=wasm32-unknown-emscripten \
--all-targets \
-- -D warnings \
$ALLOWED_RULES
fi
RESULT=$?
popd
exit $RESULT