electron/brightray/script/build

22 lines
398 B
Text
Raw Normal View History

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