@@ -7,31 +7,14 @@ if [ -z "BUILD_NUMBER" ]; then
7
7
exit 1
8
8
fi
9
9
10
- if [ -z " COMMIT_ID" ]; then
11
- echo " COMMIT_ID is not set"
12
- exit 1
13
- fi
14
-
15
10
if [ " $1 " == " hockeyapp" ] || [ " $1 " == " appcenter-experimental" ] || [ " $1 " == " appcenter-experimental-2" ] || [ " $1 " == " testinghockeyapp" ]; then
16
11
CERTS_PATH=" $HOME /codesigning_data/certs/enterprise"
17
- # PROFILES_PATH="$HOME/codesigning_data/profiles"
18
12
elif [ " $1 " == " testinghockeyapp-local" ]; then
19
- CERTS_PATH=" $HOME /codesigning_data/certs"
20
- PROFILES_PATH=" $HOME /codesigning_data/profiles"
13
+ CERTS_PATH=" $HOME /codesigning_data/certs/enterprise"
21
14
elif [ " $1 " == " appstore" ]; then
22
- if [ -z " $TELEGRAM_BUILD_APPSTORE_PASSWORD " ]; then
23
- echo " TELEGRAM_BUILD_APPSTORE_PASSWORD is not set"
24
- exit 1
25
- fi
26
- if [ -z " $TELEGRAM_BUILD_APPSTORE_TEAM_NAME " ]; then
27
- echo " TELEGRAM_BUILD_APPSTORE_TEAM_NAME is not set"
28
- exit 1
29
- fi
30
- CERTS_PATH=" $HOME /codesigning_data/certs"
31
- PROFILES_PATH=" $HOME /codesigning_data/profiles"
15
+ CERTS_PATH=" $HOME /codesigning_data/certs/distribution"
32
16
elif [ " $1 " == " verify" ]; then
33
- CERTS_PATH=" build-system/fake-codesigning/certs/distribution"
34
- PROFILES_PATH=" build-system/fake-codesigning/profiles"
17
+ CERTS_PATH=" $HOME /codesigning_data/certs/distribution"
35
18
else
36
19
echo " Unknown configuration $1 "
37
20
exit 1
95
78
96
79
security set-key-partition-list -S apple-tool:,apple: -k " $MY_KEYCHAIN_PASSWORD " " $MY_KEYCHAIN "
97
80
98
- # mkdir -p "$HOME/Library/MobileDevice/Provisioning Profiles"
99
-
100
- # for f in $(ls "$PROFILES_PATH"); do
101
- # PROFILE_PATH="$PROFILES_PATH/$f"
102
- # uuid=`grep UUID -A1 -a "$PROFILE_PATH" | grep -io "[-A-F0-9]\{36\}"`
103
- # cp -f "$PROFILE_PATH" "$HOME/Library/MobileDevice/Provisioning Profiles/$uuid.mobileprovision"
104
- # done
105
-
106
81
if [ " $1 " == " hockeyapp" ] || [ " $1 " == " appcenter-experimental" ] || [ " $1 " == " appcenter-experimental-2" ]; then
107
- # BUILD_ENV_SCRIPT="../telegram-ios-shared/buildbox/bin/internal.sh"
108
- # APP_TARGET="bazel_app_arm64"
109
- echo " " >> /dev/null
82
+ APP_CONFIGURATION=" release_arm64"
110
83
elif [ " $1 " == " appstore" ]; then
111
- BUILD_ENV_SCRIPT=" ../telegram-ios-shared/buildbox/bin/appstore.sh"
112
- APP_TARGET=" bazel_app"
84
+ APP_CONFIGURATION=" release_universal"
113
85
elif [ " $1 " == " verify" ]; then
114
- BUILD_ENV_SCRIPT=" build-system/verify.sh"
115
- APP_TARGET=" bazel_app"
116
- export CODESIGNING_DATA_PATH=" build-system/fake-codesigning"
117
- export CODESIGNING_CERTS_VARIANT=" distribution"
118
- export CODESIGNING_PROFILES_VARIANT=" appstore"
86
+ APP_CONFIGURATION=" release_universal"
119
87
else
120
88
echo " Unsupported configuration $1 "
121
89
exit 1
122
90
fi
123
91
124
- if [ " $1 " == " appcenter-experimental" ]; then
125
- export APP_CENTER_ID=" $APP_CENTER_EXPERIMENTAL_ID "
126
- elif [ " $1 " == " appcenter-experimental-2" ]; then
127
- export APP_CENTER_ID=" $APP_CENTER_EXPERIMENTAL_2_ID "
128
- fi
129
-
130
- # PATH="$PATH:$(pwd)/tools" BAZEL_HTTP_CACHE_URL="$BAZEL_HTTP_CACHE_URL" LOCAL_CODESIGNING=1 sh "$BUILD_ENV_SCRIPT" make "$APP_TARGET"
131
-
132
92
python3 build-system/Make/Make.py \
133
93
--bazel=" $( pwd) /tools/bazel" \
134
94
--cacheHost=" $BAZEL_HTTP_CACHE_URL " \
135
95
build \
136
96
--configurationPath=" $HOME /telegram-configuration" \
137
97
--buildNumber=" $BUILD_NUMBER " \
138
- --configuration=release_arm64
98
+ --configuration=" $APP_CONFIGURATION "
139
99
140
100
OUTPUT_PATH=" build/artifacts"
141
101
rm -rf " $OUTPUT_PATH "
0 commit comments