File size: 862 Bytes
2409829
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh
set -e # Exit with nonzero exit code if any individual command fails throughout the script

echo πŸ“ Create output directory in 'website/other/dist'
cd website/other
mkdir dist

echo πŸ”§ Install the latest Rust
curl https://sh.rustup.rs -sSf | sh -s -- -y
export PATH=$PATH:/opt/buildhome/.cargo/bin
rustup update stable
echo rustc version:
rustc --version

echo πŸ“¦ Install wasm-pack
cargo install wasm-pack
echo wasm-pack version:
wasm-pack --version

echo 🚧 Print installed node and npm versions
echo node version:
node --version
echo npm version:
npm --version

echo πŸ‘· Build Bezier-rs demos to 'website/other/dist/libraries/bezier-rs'
mkdir dist/libraries
mkdir dist/libraries/bezier-rs
cd bezier-rs-demos
npm ci
NODE_ENV=production npm run build
cp ../../static/fonts/common.css dist/fonts.css
mv dist/* ../dist/libraries/bezier-rs
cd ..