mirror of
https://github.com/penpot/penpot.git
synced 2025-03-09 06:11:23 -05:00
🐛 Fix problem with build script wasm (#5739)
This commit is contained in:
parent
a79315a61c
commit
96e99f6a78
3 changed files with 8 additions and 6 deletions
|
@ -24,7 +24,6 @@ EMSDK_QUIET=1 . /usr/local/emsdk/emsdk_env.sh;
|
|||
|
||||
export EM_CACHE="/tmp/emsdk_cache";
|
||||
|
||||
_SCRIPT_DIR=$(dirname $0);
|
||||
_CARGO_PARAMS="--target=wasm32-unknown-emscripten";
|
||||
|
||||
if [ "$_BUILD_MODE" = "release" ]; then
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
set -x
|
||||
|
||||
_SCRIPT_DIR=$(dirname $0);
|
||||
pushd $_SCRIPT_DIR;
|
||||
|
||||
. ./_build_env
|
||||
|
||||
set -x
|
||||
|
||||
pushd $_SCRIPT_DIR;
|
||||
cargo build $_CARGO_PARAMS
|
||||
|
||||
cp target/wasm32-unknown-emscripten/$_BUILD_MODE/render_wasm.js ../frontend/resources/public/js/
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
set -x
|
||||
|
||||
_SCRIPT_DIR=$(dirname $0);
|
||||
pushd $_SCRIPT_DIR;
|
||||
|
||||
. ./_build_env
|
||||
|
||||
set -x
|
||||
|
||||
pushd $_SCRIPT_DIR;
|
||||
cargo watch \
|
||||
-x "build $_CARGO_PARAMS" \
|
||||
|
|
Loading…
Add table
Reference in a new issue