electron/brightray/script/build
Adam Roben 46c887b62d Rewrite script/build in Python
The script is still Mac-specific, but this will make it easier to add
Windows support later.
2013-05-13 18:59:03 -04:00

18 lines
342 B
Python
Executable file

#!/usr/bin/env python
import os
import subprocess
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())