Skip to content

Instantly share code, notes, and snippets.

View ChefAustin's full-sized avatar
🤙
Rock'n'roll

Austin Culter ChefAustin

🤙
Rock'n'roll
  • Amsterdam, NL
View GitHub Profile
@ChefAustin
ChefAustin / currentBuildIsSeed.py
Created November 25, 2020 15:55 — forked from Piker-Alpha/currentBuildIsSeed.py
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')
Inspecting 27 files
CCCCCWWCCCCWWCWCWCWCCCCCCCC
Offenses:
~/macinbox/macinbox.gemspec:1:1: C: Style/FrozenStringLiteralComment: Missing magic comment # frozen_string_literal: true.
lib = File.expand_path("../lib", __FILE__)
^
~/macinbox/macinbox.gemspec:1:12: C: Style/ExpandPathArguments: Use expand_path('lib', __dir__) instead of expand_path('../lib', __FILE__).
lib = File.expand_path("../lib", __FILE__)