mirror of
https://github.com/penpot/penpot.git
synced 2026-09-28 09:32:57 +08:00
Protect shared setup, compilation, artifact copy, and target cleanup with one flock lock per checkout. Route watch builds and frontend cleanup through the protected scripts. Document the lock contract and normalize the frontend and exporter build:wasm commands. Closes #11901 AI-assisted-by: Space Bunny Free
18 lines
534 B
Bash
Executable File
18 lines
534 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -x
|
|
|
|
export SKIA_BINARIES_URL=${SKIA_BINARIES_URL:-"https://github.com/penpot/skia-binaries/releases/download/0.93.1/skia-binaries-319323662b1685a112f5-x86_64-unknown-linux-gnu-gl-svg-textlayout-binary-cache-webp.tar.gz"}
|
|
export CARGO_BUILD_TARGET=${CARGO_BUILD_TARGET:-"x86_64-unknown-linux-gnu"};
|
|
|
|
_SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)
|
|
pushd "$_SCRIPT_DIR" > /dev/null
|
|
|
|
. ./_build_env frontend
|
|
|
|
cargo test --bin render_wasm -- --show-output
|
|
|
|
RESULT=$?
|
|
popd > /dev/null
|
|
|
|
exit $RESULT
|