Created
          October 17, 2017 13:51 
        
      - 
      
- 
        Save Piker-Alpha/304c813912e0a97f777ed05a3d2ec75c to your computer and use it in GitHub Desktop. 
    Check for Beta build on macOS 10.10 and greater
  
        
  
    
      This file contains hidden or 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