2021-08-31 19:15:32 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#latest-stable
|
2021-09-15 06:19:02 +00:00
|
|
|
POVRAY_VERSION=latest-stable
|
|
|
|
#v3.7.0.0
|
2021-08-31 19:15:32 +00:00
|
|
|
|
|
|
|
if [ ! -d povray ]; then
|
|
|
|
git clone --depth 1 --branch $POVRAY_VERSION https://github.com/POV-Ray/povray povray
|
|
|
|
fi
|
|
|
|
|
|
|
|
cp build.sh povray/build.sh
|
|
|
|
|
2021-09-15 05:27:43 +00:00
|
|
|
sudo docker build . -t povray_wasm
|
2021-08-31 19:15:32 +00:00
|
|
|
|
|
|
|
cd povray
|
|
|
|
|
2021-09-15 05:27:43 +00:00
|
|
|
sudo docker run \
|
2021-08-31 19:15:32 +00:00
|
|
|
-v $PWD:/usr/src \
|
|
|
|
povray_wasm \
|
|
|
|
sh -c 'cd /usr/src && bash build.sh'
|