forked from TelegramMessenger/Telegram-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenerate_project.sh
executable file
·38 lines (29 loc) · 1021 Bytes
/
generate_project.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
brew install bazel;
XCODE_VERSION=$(/usr/bin/xcodebuild -version);
echo "$XCODE_VERSION"
BAZEL_VERSION=$(bazel --version);
echo "$BAZEL_VERSION"
USER_NAME=$(id -un);
echo "$USER_NAME";
BAZEL_PATH=$(which bazel);
echo "$BAZEL_PATH";
rm -rf $HOME/telegram-configuration;
rm -rf $HOME/telegram-bazel-cache;
sudo rm -rf /private/var/tmp/_bazel_$USER_NAME;
rm -rf ./build-input
mkdir -p $HOME/telegram-configuration;
mkdir -p $HOME/telegram-bazel-cache;
cp -R build-system/example-configuration/* $HOME/telegram-configuration/;
python3 build-system/Make/Make.py --verbose \
--cacheDir="$HOME/telegram-bazel-cache" \
--bazel="$BAZEL_PATH" \
--overrideBazelVersion \
--overrideXcodeVersion \
generateProject \
--target Kaller \
--configurationPath="build-system/appstore-configuration.json" \
--codesigningInformationPath=build-system/fake-codesigning
# --configurationPath="$HOME/telegram-configuration" \
# --disableExtensions \
# --disableProvisioningProfiles