Files
VirtualBuddy/Scripts/check_guest_app_deployment_target.sh
Guilherme Rambo 6b3bf0c740 VirtualBuddyGuest app support for legacy guest OSes (#692)
* Implement script for packaging legacy releases of the VirtualBuddyGuest app, add legacy release archives to data/LegacyGuestApp

* Add macOS 14 VirtualBuddyGuest archive

* Implement script to generate legacy VirtualBuddyGuest app archives; add build phase to fail managed build if deployment target is raised without a legacy guest app archive being made first

* Add legacyguestapp command to vctool for registering legacy VirtualBuddyGuest app archives

* Lower min OS for guest app feature to 12.3

* Allow user to override the VirtualBuddyGuest app version in virtual machine settings when the version can't be resolved automatically for the current VM

* Distribute guest app as DMG

* Update guest DMGs

* Download and install legacy guest app DMG from catalog if needed
2026-06-15 17:50:46 -03:00

19 lines
1.1 KiB
Bash
Executable File

#!/usr/bin/env zsh
# This script prevents raising the deployment target for VirtualBuddyGuest without placing the corresponding legacy archive in data/LegacyGuest,
# ensuring that older releases are always made available to users running legacy guest OSes
set -e
source "Scripts/legacy_guest_env.zsh"
# This only runs for builds using Managed configurations (Beta configurations are also managed)
if [[ "$CONFIGURATION" == *"Managed"* || "$CONFIGURATION" == *"Beta"* ]]; then
EXPECTED_GUEST_ARCHIVE="${SRCROOT}/${LEGACY_GUEST_ARCHIVE_DIR}/VirtualBuddyGuest_minOS_${LATEST_LEGACY_GUEST_APP_ARCHIVE_DEPLOYMENT_TARGET}.dmg"
if [ ! -f "${EXPECTED_GUEST_ARCHIVE}" ]; then
echo "error: The deployment target for VirtualBuddyGuest has been raised to ${MACOSX_DEPLOYMENT_TARGET} without a legacy archive being created for the latest version that supported ${LATEST_LEGACY_GUEST_APP_ARCHIVE_DEPLOYMENT_TARGET}. Please use dmgdist against a notarized build of VirtualBuddyGuest to generate an archive and register it with vctool before proceeding with this release."
exit 1
fi
fi