Signal-iOS/Scripts/disableUniversalDeviceSupport
2022-03-24 10:28:27 -05:00

18 lines
434 B
Python
Executable File

#!/usr/bin/env python3
import fileinput
import os
import subprocess
import sys
git_repo_path = os.path.abspath(
subprocess.check_output(["git", "rev-parse", "--show-toplevel"], text=True).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,2";', 'TARGETED_DEVICE_FAMILY = 1;'))
file.close()