diff --git a/scripts/build_all.sh b/scripts/build_all.sh index 3f903b7d..e115a8d0 100755 --- a/scripts/build_all.sh +++ b/scripts/build_all.sh @@ -2,16 +2,18 @@ source $(dirname "$0")/man_create.sh -if [[ ! -d public ]]; then - cd ffplayout-frontend +echo "build frontend" +echo - npm install - npm run build - yes | rm -rf ../public - mv dist ../public +yes | rm -rf public +cd ffplayout-frontend + +npm install +npm run build +mv dist ../public + +cd .. - cd .. -fi targets=("x86_64-unknown-linux-musl" "aarch64-unknown-linux-gnu" "x86_64-pc-windows-gnu" "x86_64-apple-darwin" "aarch64-apple-darwin")