-
-
Save biemster/2f05f90693caca80637a01801d21451c to your computer and use it in GitHub Desktop.
Check for Beta build on macOS 10.10 and greater
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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