27 строки
1.0 KiB
Bash
Executable File
27 строки
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Check if environment variables have been defined for our team ID, AAD App ID, and AAD App Secret for automated workflows before requesting them interactively
|
|
if [ -z $TDBUILD_TEAM_ID ]; then
|
|
printf "Team ID: "
|
|
read TDBUILD_TEAM_ID
|
|
fi
|
|
|
|
if [ -z $TDBUILD_AAD_APPLICATION_CLIENT_ID ]; then
|
|
printf "Alias: "
|
|
read TDBUILD_AAD_APPLICATION_CLIENT_ID
|
|
fi
|
|
|
|
if [ -z $TDBUILD_AAD_APPLICATION_CLIENT_SECRET ]; then
|
|
stty -echo
|
|
printf "Password: "
|
|
read TDBUILD_AAD_APPLICATION_CLIENT_SECRET
|
|
stty echo
|
|
printf "\n"
|
|
fi
|
|
|
|
# Localize iOS resources
|
|
scripts/GetLocalizedFiles.sh -t $TDBUILD_TEAM_ID -u -a $TDBUILD_AAD_APPLICATION_CLIENT_ID -p $TDBUILD_AAD_APPLICATION_CLIENT_SECRET -f ios/FluentUI/Resources/Localization/en.lproj -r ios -o ios/FluentUI/Resources/Localization
|
|
|
|
# Localize macOS resources
|
|
scripts/GetLocalizedFiles.sh -t $TDBUILD_TEAM_ID -u -a $TDBUILD_AAD_APPLICATION_CLIENT_ID -p $TDBUILD_AAD_APPLICATION_CLIENT_SECRET -f macos/FluentUI/Resources/Strings/en.lproj -r macos -o macos/FluentUI/Resources/Strings
|