build(client-web): 🚀 update client build script

- add depend on OS
This commit is contained in:
pakintada@gmail.com 2024-03-15 10:54:59 +07:00
parent 37c182729b
commit 8315f268b1
2 changed files with 16 additions and 2 deletions

View file

@ -6,6 +6,7 @@ npm run build
# send zipped
cd ./dist
echo "packing and uploading ..."
./send_package.sh
./send_package.sh $(machine)
cd ../..

View file

@ -1,6 +1,19 @@
#!/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"
./upload-cli
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