[macOS] Enable indexing for macOS-14 and macOS-15 (#11930)

This commit is contained in:
Erik Bershel
2025-04-07 13:32:11 +02:00
committed by GitHub
parent 68d05af296
commit 2742bacfad

View File

@@ -56,18 +56,11 @@ yarn cache clean
# Clean up temporary directories
sudo rm -rf ~/utils /tmp/*
if is_Ventura; then
# Erase all indexes and wait until the rebuilding process ends,
# for now there is no way to get status of indexing process, it takes around 3 minutes to accomplish
sudo mdutil -E /
sudo log stream | grep -q -E 'mds.*Released.*BackgroundTask' || true
echo "Indexing completed"
else
# Disable spotlight and MDS
sudo mdutil -a -i off
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
sudo mdutil -a -s | grep "Indexing enabled." && echo "Indexing is still enabled" && exit 1 || true
fi
# Erase all indexes and wait until the rebuilding process ends,
# for now there is no way to get status of indexing process, it takes around 5 minutes to accomplish
sudo mdutil -E /
sudo log stream | grep -q -E 'mds.*Released.*BackgroundTask' || true
echo "Indexing completed"
# delete symlink for tests running
sudo rm -f /usr/local/bin/invoke_tests