Rewrite script/build in Python
The script is still Mac-specific, but this will make it easier to add Windows support later.
This commit is contained in:
parent
c29074ff94
commit
46c887b62d
1 changed files with 15 additions and 5 deletions
|
@ -1,8 +1,18 @@
|
|||
#!/bin/sh
|
||||
#!/usr/bin/env python
|
||||
|
||||
set -e
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
gyp --depth . brightray.gyp
|
||||
xcodebuild
|
||||
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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue