Skip to content

Commit 8f869b5

Browse files
author
Ali
committed
Temp [skip ci]
1 parent fa3be5d commit 8f869b5

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

‎buildbox/build-telegram.sh

+14-18
Original file line numberDiff line numberDiff line change
@@ -90,28 +90,24 @@ fi
9090
BASE_DIR=$(pwd)
9191

9292
if [ "$BUILD_CONFIGURATION" == "hockeyapp" ] || [ "$BUILD_CONFIGURATION" == "appcenter-experimental" ] || [ "$BUILD_CONFIGURATION" == "appcenter-experimental-2" ] || [ "$BUILD_CONFIGURATION" == "appstore" ]; then
93-
if [ ! `which setup-telegram-build.sh` ]; then
94-
echo "setup-telegram-build.sh not found in PATH $PATH"
93+
if [ ! `which generate-configuration.sh` ]; then
94+
echo "generate-configuration.sh not found in PATH $PATH"
9595
exit 1
9696
fi
97-
if [ ! `which setup-codesigning.sh` ]; then
98-
echo "setup-codesigning.sh not found in PATH $PATH"
99-
exit 1
100-
fi
101-
source `which setup-telegram-build.sh`
102-
setup_telegram_build "$BUILD_CONFIGURATION" "$BASE_DIR/$BUILDBOX_DIR/transient-data"
103-
source `which setup-codesigning.sh`
10497

105-
CODESIGNING_CONFIGURATION="$BUILD_CONFIGURATION"
106-
if [ "$BUILD_CONFIGURATION" == "appcenter-experimental" ] || [ "$BUILD_CONFIGURATION" == "appcenter-experimental-2" ]; then
107-
CODESIGNING_CONFIGURATION="hockeyapp"
108-
fi
98+
mkdir -p "$BASE_DIR/$BUILDBOX_DIR/transient-data/build-configuration"
99+
100+
case "$BUILD_CONFIGURATION" in
101+
"hockeyapp")
102+
generate-configuration.sh internal development "$BASE_DIR/$BUILDBOX_DIR/telegram-codesigning" "$BASE_DIR/$BUILDBOX_DIR/transient-data"
103+
;;
104+
105+
*)
106+
echo "Unknown build configuration $BUILD_CONFIGURATION"
107+
exit 1
108+
;;
109+
esac
109110

110-
setup_codesigning "$CODESIGNING_CONFIGURATION" "$BASE_DIR/$BUILDBOX_DIR/transient-data"
111-
if [ "$SETUP_TELEGRAM_BUILD_VERSION" != "$BUILD_TELEGRAM_VERSION" ]; then
112-
echo "setup-telegram-build.sh script version doesn't match"
113-
exit 1
114-
fi
115111
if [ "$BUILD_CONFIGURATION" == "appstore" ]; then
116112
if [ -z "$TELEGRAM_BUILD_APPSTORE_PASSWORD" ]; then
117113
echo "TELEGRAM_BUILD_APPSTORE_PASSWORD is not set"

0 commit comments

Comments
 (0)