Skip to content

Instantly share code, notes, and snippets.

@ChefAustin
Forked from Piker-Alpha/currentBuildIsSeed.py
Created November 25, 2020 15:55
Show Gist options
  • Save ChefAustin/f246d38c887e97821ba9d9888ccae687 to your computer and use it in GitHub Desktop.
Save ChefAustin/f246d38c887e97821ba9d9888ccae687 to your computer and use it in GitHub Desktop.
Check for Beta build on macOS 10.10 and greater
#!/usr/bin/python
import objc
from Foundation import NSBundle, NSClassFromString
SeedingBundle = NSBundle.bundleWithPath_('/System/Library/PrivateFrameworks/Seeding.framework')
objc.loadBundleFunctions(SeedingBundle, globals(), [("currentBuildIsSeed", '@')])
buildInfo = NSClassFromString('SDBuildInfo')
if buildInfo.currentBuildIsSeed():
print "Build is seed: YES"
else:
print "Build is seed: NO"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment