优化TOA

This commit is contained in:
GoEdgeLab
2023-07-24 10:01:38 +08:00
parent 9f5dfec1c8
commit bd05b68966
6 changed files with 18 additions and 114 deletions

View File

@@ -54,10 +54,11 @@ function build() {
cp -R "$ROOT"/www "$DIST"/
cp -R "$ROOT"/pages "$DIST"/
# we support TOA on linux/amd64 only
if [ "$OS" == "linux" ] && [ "$ARCH" == "amd64" ]
# we support TOA on linux only
if [ "$OS" == "linux" ] && [ -f "${ROOT}/edge-toa/edge-toa-${ARCH}" ]
then
cp -R "$ROOT"/edge-toa "$DIST"
mkdir "$DIST/edge-toa"
cp "${ROOT}/edge-toa/edge-toa-${ARCH}" "$DIST/edge-toa/edge-toa"
fi
echo "building ..."

Binary file not shown.