mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Experimental branch setup
This commit is contained in:
parent
5795542022
commit
26cdf91591
@ -27,6 +27,24 @@ internal:
|
|||||||
- build/artifacts/Telegram.DSYMs.zip
|
- build/artifacts/Telegram.DSYMs.zip
|
||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
|
|
||||||
|
experimental:
|
||||||
|
tags:
|
||||||
|
- ios_internal
|
||||||
|
stage: build
|
||||||
|
only:
|
||||||
|
- experimental
|
||||||
|
except:
|
||||||
|
- tags
|
||||||
|
script:
|
||||||
|
- bash buildbox/build-telegram.sh appcenter-experimental
|
||||||
|
- bash buildbox/deploy-telegram.sh appcenter-experimental
|
||||||
|
environment:
|
||||||
|
name: experimental
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- build/artifacts/Telegram.DSYMs.zip
|
||||||
|
expire_in: 1 week
|
||||||
|
|
||||||
beta_testflight:
|
beta_testflight:
|
||||||
tags:
|
tags:
|
||||||
- ios_beta
|
- ios_beta
|
||||||
|
@ -57,7 +57,7 @@ cp "$BUCK" "tools/buck"
|
|||||||
|
|
||||||
BUILD_CONFIGURATION="$1"
|
BUILD_CONFIGURATION="$1"
|
||||||
|
|
||||||
if [ "$BUILD_CONFIGURATION" == "hockeyapp" ]; then
|
if [ "$BUILD_CONFIGURATION" == "hockeyapp" ] || [ "$BUILD_CONFIGURATION" == "appcenter-experimental" ]; then
|
||||||
CODESIGNING_SUBPATH="transient-data/codesigning"
|
CODESIGNING_SUBPATH="transient-data/codesigning"
|
||||||
CODESIGNING_TEAMS_SUBPATH="transient-data/teams"
|
CODESIGNING_TEAMS_SUBPATH="transient-data/teams"
|
||||||
elif [ "$BUILD_CONFIGURATION" == "appstore" ]; then
|
elif [ "$BUILD_CONFIGURATION" == "appstore" ]; then
|
||||||
@ -89,7 +89,7 @@ fi
|
|||||||
|
|
||||||
BASE_DIR=$(pwd)
|
BASE_DIR=$(pwd)
|
||||||
|
|
||||||
if [ "$BUILD_CONFIGURATION" == "hockeyapp" ] || [ "$BUILD_CONFIGURATION" == "appstore" ]; then
|
if [ "$BUILD_CONFIGURATION" == "hockeyapp" ] || [ "$BUILD_CONFIGURATION" == "appcenter-experimental" ] || [ "$BUILD_CONFIGURATION" == "appstore" ]; then
|
||||||
if [ ! `which setup-telegram-build.sh` ]; then
|
if [ ! `which setup-telegram-build.sh` ]; then
|
||||||
echo "setup-telegram-build.sh not found in PATH $PATH"
|
echo "setup-telegram-build.sh not found in PATH $PATH"
|
||||||
exit 1
|
exit 1
|
||||||
@ -101,7 +101,13 @@ if [ "$BUILD_CONFIGURATION" == "hockeyapp" ] || [ "$BUILD_CONFIGURATION" == "app
|
|||||||
source `which setup-telegram-build.sh`
|
source `which setup-telegram-build.sh`
|
||||||
setup_telegram_build "$BUILD_CONFIGURATION" "$BASE_DIR/$BUILDBOX_DIR/transient-data"
|
setup_telegram_build "$BUILD_CONFIGURATION" "$BASE_DIR/$BUILDBOX_DIR/transient-data"
|
||||||
source `which setup-codesigning.sh`
|
source `which setup-codesigning.sh`
|
||||||
setup_codesigning "$BUILD_CONFIGURATION" "$BASE_DIR/$BUILDBOX_DIR/transient-data"
|
|
||||||
|
CODESIGNING_CONFIGURATION="$BUILD_CONFIGURATION"
|
||||||
|
if [ "$BUILD_CONFIGURATION" == "appcenter-experimental" ]; then
|
||||||
|
CODESIGNING_CONFIGURATION="hockeyapp"
|
||||||
|
fi
|
||||||
|
|
||||||
|
setup_codesigning "$CODESIGNING_CONFIGURATION" "$BASE_DIR/$BUILDBOX_DIR/transient-data"
|
||||||
if [ "$SETUP_TELEGRAM_BUILD_VERSION" != "$BUILD_TELEGRAM_VERSION" ]; then
|
if [ "$SETUP_TELEGRAM_BUILD_VERSION" != "$BUILD_TELEGRAM_VERSION" ]; then
|
||||||
echo "setup-telegram-build.sh script version doesn't match"
|
echo "setup-telegram-build.sh script version doesn't match"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -62,4 +62,6 @@ if [ "$1" == "appstore" ]; then
|
|||||||
FASTLANE_PASSWORD="$FASTLANE_PASSWORD" xcrun altool --upload-app --type ios --file "$IPA_PATH" --username "$FASTLANE_ITC_USERNAME" --password "@env:FASTLANE_PASSWORD"
|
FASTLANE_PASSWORD="$FASTLANE_PASSWORD" xcrun altool --upload-app --type ios --file "$IPA_PATH" --username "$FASTLANE_ITC_USERNAME" --password "@env:FASTLANE_PASSWORD"
|
||||||
elif [ "$1" == "hockeyapp" ]; then
|
elif [ "$1" == "hockeyapp" ]; then
|
||||||
API_USER_NAME="$API_USER_NAME" API_APP_NAME="$API_APP_NAME" API_TOKEN="$API_TOKEN" sh buildbox/deploy-appcenter.sh
|
API_USER_NAME="$API_USER_NAME" API_APP_NAME="$API_APP_NAME" API_TOKEN="$API_TOKEN" sh buildbox/deploy-appcenter.sh
|
||||||
|
elif [ "$1" == "appecenter-experimental" ]; then
|
||||||
|
API_USER_NAME="$API_USER_NAME" API_APP_NAME="$API_APP_NAME" API_TOKEN="$API_TOKEN" sh buildbox/deploy-appcenter.sh
|
||||||
fi
|
fi
|
||||||
|
@ -12,7 +12,7 @@ if [ -z "COMMIT_ID" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$1" == "hockeyapp" ] || [ "$1" == "testinghockeyapp" ]; then
|
if [ "$1" == "hockeyapp" ] || [ "$1" == "appcenter-experimental" ] || [ "$1" == "testinghockeyapp" ]; then
|
||||||
CERTS_PATH="$HOME/codesigning_data/certs"
|
CERTS_PATH="$HOME/codesigning_data/certs"
|
||||||
PROFILES_PATH="$HOME/codesigning_data/profiles"
|
PROFILES_PATH="$HOME/codesigning_data/profiles"
|
||||||
elif [ "$1" == "testinghockeyapp-local" ]; then
|
elif [ "$1" == "testinghockeyapp-local" ]; then
|
||||||
@ -99,7 +99,7 @@ for f in $(ls "$PROFILES_PATH"); do
|
|||||||
cp -f "$PROFILE_PATH" "$HOME/Library/MobileDevice/Provisioning Profiles/$uuid.mobileprovision"
|
cp -f "$PROFILE_PATH" "$HOME/Library/MobileDevice/Provisioning Profiles/$uuid.mobileprovision"
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "$1" == "hockeyapp" ]; then
|
if [ "$1" == "hockeyapp" ] || [ "$1" == "appcenter-experimental" ]; then
|
||||||
BUILD_ENV_SCRIPT="../telegram-ios-shared/buildbox/bin/internal.sh"
|
BUILD_ENV_SCRIPT="../telegram-ios-shared/buildbox/bin/internal.sh"
|
||||||
APP_TARGET="app_arm64"
|
APP_TARGET="app_arm64"
|
||||||
elif [ "$1" == "appstore" ]; then
|
elif [ "$1" == "appstore" ]; then
|
||||||
@ -120,6 +120,10 @@ if [ -d "$BUCK_DIR_CACHE" ]; then
|
|||||||
sudo chown telegram "$BUCK_DIR_CACHE"
|
sudo chown telegram "$BUCK_DIR_CACHE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$1" == "appcenter-experimental" ]; then
|
||||||
|
export APP_CENTER_ID="$APP_CENTER_EXPERIMENTAL_ID"
|
||||||
|
fi
|
||||||
|
|
||||||
BUCK="$(pwd)/tools/buck" BUCK_HTTP_CACHE="$BUCK_HTTP_CACHE" BUCK_CACHE_MODE="$BUCK_CACHE_MODE" BUCK_DIR_CACHE="$BUCK_DIR_CACHE" LOCAL_CODESIGNING=1 sh "$BUILD_ENV_SCRIPT" make "$APP_TARGET"
|
BUCK="$(pwd)/tools/buck" BUCK_HTTP_CACHE="$BUCK_HTTP_CACHE" BUCK_CACHE_MODE="$BUCK_CACHE_MODE" BUCK_DIR_CACHE="$BUCK_DIR_CACHE" LOCAL_CODESIGNING=1 sh "$BUILD_ENV_SCRIPT" make "$APP_TARGET"
|
||||||
|
|
||||||
OUTPUT_PATH="build/artifacts"
|
OUTPUT_PATH="build/artifacts"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user