electron/brightray/script/build

19 lines
342 B
Text
Raw Normal View History

#!/usr/bin/env python
2013-03-13 19:12:05 +00:00
import os
import subprocess
2013-03-13 19:12:05 +00:00
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
def main():
os.chdir(SOURCE_ROOT)
subprocess.check_call(['gyp', '--depth', '.', 'brightray.gyp'])
subprocess.check_call(['xcodebuild'])
if __name__ == '__main__':
import sys
sys.exit(main())