Try again

This commit is contained in:
Ali 2023-04-07 18:43:41 +04:00
parent edbbaff5aa
commit 58695a9d5a
5 changed files with 8 additions and 5 deletions

View File

@ -35,3 +35,6 @@ build --spawn_strategy=standalone
build --strategy=SwiftCompile=standalone
build --define RULES_SWIFT_BUILD_DUMMY_WORKER=1
build --apple_crosstool_top=@local_config_apple_cc//:toolchain
build --crosstool_top=@local_config_apple_cc//:toolchain
build --host_crosstool_top=@local_config_apple_cc//:toolchain

2
.gitmodules vendored
View File

@ -10,7 +10,7 @@ url=https://github.com/ali-fareed/rules_apple.git
url=https://github.com/bazelbuild/rules_swift.git
[submodule "build-system/bazel-rules/apple_support"]
path = build-system/bazel-rules/apple_support
url = https://github.com/bazelbuild/apple_support.git
url=https://github.com/ali-fareed/apple_support.git
[submodule "submodules/TgVoip/libtgvoip"]
path = submodules/TgVoip/libtgvoip
url = https://github.com/telegramdesktop/libtgvoip.git

View File

@ -740,7 +740,7 @@ genrule(
name = "StripWatchosStubBinary",
cmd_bash =
"""
echo 'lipo -remove arm64e -remove arm64 $$1/TelegramWatch.app/_WatchKitStub/WK -output $$1/TelegramWatch.app/_WatchKitStub/WK && lipo -remove arm64e -remove arm64 $$1/TelegramWatch.app/TelegramWatch -output $$1/TelegramWatch.app/TelegramWatch' > $(location StripWatchosStubBinary.sh)
echo 'lipo -remove arm64e $$1/TelegramWatch.app/_WatchKitStub/WK -output $$1/TelegramWatch.app/_WatchKitStub/WK && lipo -remove arm64e $$1/TelegramWatch.app/TelegramWatch -output $$1/TelegramWatch.app/TelegramWatch' > $(location StripWatchosStubBinary.sh)
echo '' >> $(location StripWatchosStubBinary.sh)
""",
outs = [
@ -1970,7 +1970,7 @@ ios_application(
}),
watch_application = select({
":disableExtensionsSetting": None,
"//conditions:default": None,#":TelegramWatchApp",
"//conditions:default": ":TelegramWatchApp",
}) if telegram_enable_watch else None,
deps = [
":Main",

View File

@ -191,7 +191,7 @@ class BazelCommandLine:
'--ios_multi_cpus=arm64',
# Always build universal Watch binaries.
'--watchos_cpus=armv7k,arm64_32',
'--watchos_cpus=armv7k,arm64_32,arm64',
# Generate DSYM files when building.
'--apple_generate_dsym',

@ -1 +1 @@
Subproject commit 7cecc126925fef811c274b10b99329179574f9cb
Subproject commit 12fc37b370ff460c8712f16eb61a4d1f5abfc565