3.0.0 • Published 3 years ago
react-native-upload-third-platform v3.0.0
初始化配置
npx init
在项目目录下创建 upload.json
,
{
"pgy": {
"api_key": "",
"install_type": 1,
"install_password": "",
"ios_export_plist": "path",
"send_email": true
},
"email_config": {
"host": "",
"port": "xxx",
"auth_user": "xxxx@xx.com",
"password": "xxxx",
"to": "somebody@xxx.com",
"cc": "somebody@xxx.com",
"copyright": "email signature!"
}
}
上传蒲公英字段说明
api_key
必填,上传的 api key,install_type
(选填)应用安装方式,值为(1,2,3,默认为 1 公开安装)。1:公开安装,2:密码安装,3:邀请安装install_password
(选填) 设置 App 安装密码,密码为空时默认公开安装ios_export_plist
ios 打包上传时需要的文件send_email
打包上传之后,是否需要需要发送邮件 默认false
,true
为发送邮件
邮箱配置字段说明(*为必填)
host
* 发送邮箱的主机域名post
* 发送邮箱的主机的端口password
* 发送邮件的邮箱的密码,设置密码的其中一种方式auth_user
* 发送的邮箱账户to
* 邮件接收方邮箱cc
(选题)邮件抄送copyright
邮件签名
password
的第二种设置方式,如果在upload.json
中没设置,会从系统的钥匙去查找设置的邮箱密码。读取钥匙串时中的名称为email_password
,账户设置的auth_user
的密码。
设置密码:
打开钥匙串->点击添加->钥匙串名称设置为email_password
,账户名为auth_user
的值, 密码设置成邮箱密码->点击添加。
一键打包
自动打包上传
npx build-to-pgy
忽略 ios 打包
npx build-to-pgy --no-ios
忽略 android 打包
bash npx build-to-pgy --no-android
--log "xxxx"
添加更新描述信息, 建议使用<li></li>
来标记。
修复问题:
2.1.5
修复邮件发送成功之后的返回提示
2.1.6
修复邮件发送问题
2.2.1
更新邮件模板
2.3.1
新增邮件模板, 版本号和版本环境在项目的 package.json 定义
3.0.0
3 years ago
2.3.2
3 years ago
2.3.1
3 years ago
2.3.0
3 years ago
2.2.1
4 years ago
2.1.9
4 years ago
2.2.0
4 years ago
2.1.8
4 years ago
2.1.7
4 years ago
2.1.6
4 years ago
2.1.5
4 years ago
2.1.4
4 years ago
2.1.3
4 years ago
2.1.2
4 years ago
2.1.1
4 years ago
2.1.0
4 years ago
2.0.3
4 years ago
2.0.2
4 years ago
2.0.1
4 years ago
2.0.0
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago