代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/Tailchat 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
workflows:
android:
name: build, test & publish Android version
max_build_duration: 30
instance_type: mac_mini_m1
working_directory: client/mobile
environment:
groups:
- default
- cloudflare_credentials
cache:
cache_paths:
- $CM_BUILD_DIR/node_modules
scripts:
- name: Install npm dependencies
script: |
yarn
- name: Set Android SDK location
script: |
echo "sdk.dir=$ANDROID_SDK_ROOT" > "./android/local.properties"
- name: Set Files
script: |
echo $AGCONNECT_SERVICES | base64 --decode > "./android/app/agconnect-services.json"
echo $KEYSTORE_FILE | base64 --decode > "./android/app/tailchat.keystore"
echo "TAILCHAT_UPLOAD_STORE_FILE=$TAILCHAT_UPLOAD_STORE_FILE" >> "./.env"
echo "TAILCHAT_UPLOAD_STORE_PASSWORD=$TAILCHAT_UPLOAD_STORE_PASSWORD" >> "./.env"
echo "TAILCHAT_UPLOAD_KEY_ALIAS=$TAILCHAT_UPLOAD_KEY_ALIAS" >> "./.env"
echo "TAILCHAT_UPLOAD_KEY_PASSWORD=$TAILCHAT_UPLOAD_KEY_PASSWORD" >> "./.env"
echo "GETUI_APPID=$GETUI_APPID" >> "./.env"
echo "GETUI_APPKEY=$GETUI_APPKEY" >> "./.env"
echo "GETUI_APPSECRET=$GETUI_APPSECRET" >> "./.env"
echo "GETUI_HUAWEI_APP_ID=$GETUI_HUAWEI_APP_ID" >> "./.env"
- name: Build Android release
working_directory: client/mobile/android
script: |
UPDATED_BUILD_NUMBER=$BUILD_NUMBER
./gradlew assembleRelease \
-PversionCode=$UPDATED_BUILD_NUMBER \
-PversionName=1.0.$UPDATED_BUILD_NUMBER
- name: Build finished successfully
script: touch ~/SUCCESS
artifacts:
- android/app/build/outputs/**/**/*.apk
publishing:
email:
recipients:
- moonrailgun@gmail.com
scripts:
- name: Install wrangler
script: npm install -g wrangler
- name: Deploy to Cloudflare Pages
script: |
if [[ -f ~/SUCCESS ]]; then
if [[ $CM_BRANCH == "master" ]]; then
# deploy to production
wrangler pages publish android/app/build/outputs/apk/release --project-name tailchat --branch main
else
wrangler pages publish android/app/build/outputs/apk/release --project-name tailchat --branch $CM_BRANCH
fi
fi
- name: Notify artifact URL to Tailchat
script: |
node scripts/notify-links.js
ios:
name: build, test & publish iOS version
instance_type: mac_mini_m1
working_directory: client/mobile
environment:
groups:
- default
- cloudflare_credentials
cache:
cache_paths:
- $CM_BUILD_DIR/node_modules
scripts:
- name: Install npm dependencies
script: |
yarn
- name: Build ipa for distribution
working_directory: client/mobile/ios
script: |
xcode-project build-ipa \
--workspace "$CM_BUILD_DIR/client/mobile/ios/$XCODE_WORKSPACE" \
--scheme "$XCODE_SCHEME"
artifacts:
- build/ios/ipa/*.ipa
publishing:
email:
recipients:
- moonrailgun@gmail.com
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。