mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-06 17:00:13 +00:00
Update build rules
This commit is contained in:
parent
cef80692bd
commit
205211d5ba
@ -129,20 +129,4 @@ def generate(build_environment: BuildEnvironment, disable_extensions, disable_pr
|
|||||||
|
|
||||||
xcodeproj_path = '{project}/{target}.xcodeproj'.format(project=project_path, target=app_target)
|
xcodeproj_path = '{project}/{target}.xcodeproj'.format(project=project_path, target=app_target)
|
||||||
|
|
||||||
bazel_build_settings_path = '{}/.tulsi/Scripts/bazel_build_settings.py'.format(xcodeproj_path)
|
|
||||||
|
|
||||||
with open(bazel_build_settings_path, 'rb') as bazel_build_settings:
|
|
||||||
bazel_build_settings_contents = bazel_build_settings.read().decode('utf-8')
|
|
||||||
bazel_build_settings_contents = bazel_build_settings_contents.replace(
|
|
||||||
'BUILD_SETTINGS = BazelBuildSettings(',
|
|
||||||
'import os\nBUILD_SETTINGS = BazelBuildSettings('
|
|
||||||
)
|
|
||||||
bazel_build_settings_contents = bazel_build_settings_contents.replace(
|
|
||||||
'\'--cpu=ios_arm64\'',
|
|
||||||
'\'--cpu=ios_arm64\'.replace(\'ios_arm64\', \'ios_sim_arm64\' if os.environ.get(\'EFFECTIVE_PLATFORM_NAME\') '
|
|
||||||
'== \'-iphonesimulator\' else \'ios_arm64\')'
|
|
||||||
)
|
|
||||||
with open(bazel_build_settings_path, 'wb') as bazel_build_settings:
|
|
||||||
bazel_build_settings.write(bazel_build_settings_contents.encode('utf-8'))
|
|
||||||
|
|
||||||
call_executable(['open', xcodeproj_path])
|
call_executable(['open', xcodeproj_path])
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
Subproject commit 8c8f4661dba2bbe8578ae42b8ab7001d27357575
|
Subproject commit 03c89782e9a15d467c7e036ee36f9adb6bdda910
|
||||||
@ -1 +1 @@
|
|||||||
Subproject commit 01d37ab862350cb33cbae25cf6622bf534df264f
|
Subproject commit ec7dd9ddf4b73dedb02df827b7ab3b2cbb1f2ac0
|
||||||
Loading…
x
Reference in New Issue
Block a user