mirror of
https://github.com/insidegui/VirtualBuddy.git
synced 2026-12-02 04:19:30 +08:00
* 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
19 lines
1.1 KiB
Bash
Executable File
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
|