Taobin-Recipe-Manager/client/dist/send_package.sh
pakintada@gmail.com 8315f268b1 build(client-web): 🚀 update client build script
- add depend on OS
2024-03-15 10:54:59 +07:00

19 lines
421 B
Bash

#!/bin/bash
zip -vr client.zip client/
# exclusive for mac with arm
echo "$OSTYPE.$1"
echo "-------------------------------------------"
echo "** Make sure the network is accessiable to 10.11.77.50"
if [[ $OSTYPE == "darwin"* ]]; then
if [ $1 == "arm64e" ]; then
./upload-cli
exit;
fi
else
echo "[WARN] did not activate auto upload."
fi
echo "Activating upload binary client ..."
./uploadBinaryClient.sh