mkdir dist
env BUILD_TARGET=$TARGETARCH ./scripts/cross-build.sh
[ "$arch" = "armv7" ] && arch="arm"
cp build/ttyd dist/ttyd