46c887b62d
The script is still Mac-specific, but this will make it easier to add Windows support later.
18 lines
342 B
Python
Executable file
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())
|