flutter打包

#!/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

  

posted @ 2024-07-25 11:35  飞雪飘鸿  阅读(12)  评论(0编辑  收藏  举报
https://damo.alibaba.com/ https://tianchi.aliyun.com/course?spm=5176.21206777.J_3941670930.5.87dc17c9BZNvLL