AFFiNE/apps/electron/scripts/unzip-macos-arm64.sh
2023-07-04 16:59:00 +00:00

17 lines
314 B
Bash
Executable File

#!/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