#!/bin/bash

set -exf

BUILD_FRAMEWORK_FOLDER_PATH="crates/ffi/src/platforms/apple/build/framework"

rm "${BUILD_FRAMEWORK_FOLDER_PATH}/AdGuardFLM.xcframework.zip" | true

zip -r "${BUILD_FRAMEWORK_FOLDER_PATH}/AdGuardFLM.xcframework.zip" "${BUILD_FRAMEWORK_FOLDER_PATH}/AdGuardFLM.xcframework"
