ci: check macOS arm64 bundle output (#3012)

This commit is contained in:
Alex Yang
2023-07-05 00:59:00 +08:00
committed by GitHub
parent dfbec46ded
commit a06ba403d0
5 changed files with 73 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
#!/bin/bash
# Set the directory
dir="./out/canary/make/zip/darwin/arm64"
# Get the first file
file=$(ls -1 $dir | head -n 1)
# Check if file exists and is a zip file
if [ -f "$dir/$file" ] && [ ${file: -4} == ".zip" ]
then
# Unzip the file
unzip "$dir/$file" -d "zip-out"
else
echo "No zip file found"
fi