Skip to content

Instantly share code, notes, and snippets.

@biemster
Forked from Piker-Alpha/currentBuildIsSeed.py
Created June 4, 2022 13:07
Show Gist options
  • Save biemster/2f05f90693caca80637a01801d21451c to your computer and use it in GitHub Desktop.
Save biemster/2f05f90693caca80637a01801d21451c 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