fix build scripts

This commit is contained in:
YouROK
2021-07-19 11:23:34 +03:00
parent 090bc59310
commit f8c9a674e6
2 changed files with 3 additions and 10 deletions

View File

@@ -4,11 +4,7 @@ ROOT=${PWD}
#### Build web
echo "Build web"
cd "${ROOT}/web" || exit 1
npm install --silent
npm run --silent build-js
cp "${ROOT}/web/dest/index.html" "${ROOT}/server/web/pages/template/pages/"
cd ..
$GOBIN run gen_web.go
sudo docker run --rm -v "$PWD":/usr/src/torr -w /usr/src/torr golang:1.16 ./build-all.sh
sudo chmod 0777 ./dist/*