16 lines
416 B
Python
Executable File
16 lines
416 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
import fileinput
|
|
import os
|
|
import subprocess
|
|
import sys
|
|
|
|
git_repo_path = os.path.abspath(subprocess.check_output(['git', 'rev-parse', '--show-toplevel']).strip())
|
|
|
|
file = fileinput.FileInput(git_repo_path + '/Signal.xcodeproj/project.pbxproj', inplace=True)
|
|
|
|
for line in file:
|
|
sys.stdout.write(line.replace('TARGETED_DEVICE_FAMILY = 1;', 'TARGETED_DEVICE_FAMILY = "1,2";'))
|
|
|
|
file.close()
|