This repository has been archived on 2026-07-05. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
vynte-connect/apps/vynte-connect/Scripts/package-zip.sh
T

21 lines
530 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
APP_DIR="${ROOT_DIR}/dist/Vynte Connect.app"
ZIP_PATH="${ROOT_DIR}/dist/Vynte-Connect-macOS.zip"
if [[ "${SKIP_BUILD:-0}" != "1" ]]; then
"${ROOT_DIR}/Scripts/build-app.sh"
fi
if [[ "${PRESERVE_SIGNATURE:-0}" != "1" ]]; then
codesign --force --deep --sign - "$APP_DIR"
fi
codesign --verify --deep --strict --verbose=2 "$APP_DIR"
rm -f "$ZIP_PATH"
ditto -c -k --keepParent "$APP_DIR" "$ZIP_PATH"
echo "Packaged ${ZIP_PATH}"