#!/bin/bash # 設定協議 可以防止一些依賴拉取不下來 export https_proxy=xxx # 設定執行的PATH export PATH=xxx # 設定Flutter中國映象 export FLUTTER_STORAGE_BASE_URL="https://storage.flutter-io.cn" # 設定Flutter中國映象 export PUB_HOSTED_URL="https://pub.flutter-io.cn" # 設定iOS包傳送日誌到企業微信Hook URL export IOS_HOOK_URL=xxx # 設定android包傳送日誌到企業微信 Hook URL export ANDROID_HOOK_URL=xxx # 設定上傳到Appstore Api Key export APP_STORE_CONNECT_API_KEY_ID=xxx # 設定上傳Appstore Issuer ID export APP_STORE_CONNECT_API_ISSUER_ID=xxx # 設定上傳Appstore Api Key的.p8本地路徑 export APP_STORE_CONNECT_API_KEY_FILEPATH=xxx # 設定iOS的包的識別符號 export APP_IDENTIFIER=xxx # 設定iOS包在Appstore的ID export APP_ID=xxx # 設定上傳安卓包蒲公英的Api Key export PGYER_API_KEY=xxx # 設定Unity工程所在Flutter專案的路徑 export UNITY_WORKSPACE=xxx # 設定iOS Unity工程所在的相對路徑 export IOS_UNITY_PATH=unity/meta_winner_unity_ios # 設定android Unity工程所在的相對路徑 export ANDROID_UNITY_PATH=unity/meta_winner_unity_android # 設定Unity引擎執行檔案所在的路徑 export UNITY_ENGINE_PATH=xxx/2021.3.16f1c1/Unity.app/Contents/MacOS/unity # 設定傳送日誌到釘釘iOS的Hook URL export DINGDING_IOS_HOOK_URL=xxx # 設定傳送日誌到釘釘android的Hook URL export DINGDING_ANDROID_HOOK_URL=xxx echo "-----------------------------------ENV---------------------------------" env echo "-----------------------------------ENV---------------------------------" # 進行打包 $PLATFROM 打包的平臺 ios/android --tag 設定當前打包的Tag build_winner_app build $PLATFROM --tag "穩健醫療" # 下面是將最新打包ID同步 支援多裝置進行打包 cd $WORKSPACE git add . git commit -m "更新最後一次打包配置" git pull origin dev_mobshare git push origin dev_mobshare