Skip to content

Instantly share code, notes, and snippets.

@Piker-Alpha
Created October 17, 2017 13:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save Piker-Alpha/304c813912e0a97f777ed05a3d2ec75c to your computer and use it in GitHub Desktop.
Save Piker-Alpha/304c813912e0a97f777ed05a3d2ec75c 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