build(client-web): 🚀 update client build script
- add depend on OS
This commit is contained in:
parent
37c182729b
commit
8315f268b1
2 changed files with 16 additions and 2 deletions
|
|
@ -6,6 +6,7 @@ npm run build
|
||||||
# send zipped
|
# send zipped
|
||||||
cd ./dist
|
cd ./dist
|
||||||
echo "packing and uploading ..."
|
echo "packing and uploading ..."
|
||||||
./send_package.sh
|
|
||||||
|
./send_package.sh $(machine)
|
||||||
|
|
||||||
cd ../..
|
cd ../..
|
||||||
|
|
|
||||||
15
client/dist/send_package.sh
vendored
15
client/dist/send_package.sh
vendored
|
|
@ -1,6 +1,19 @@
|
||||||
|
#!/bin/bash
|
||||||
zip -vr client.zip client/
|
zip -vr client.zip client/
|
||||||
|
|
||||||
|
# exclusive for mac with arm
|
||||||
|
echo "$OSTYPE.$1"
|
||||||
echo "-------------------------------------------"
|
echo "-------------------------------------------"
|
||||||
echo "** Make sure the network is accessiable to 10.11.77.50"
|
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue