
# https://chat.gdchat.cn/tabs/home
# 打包项目，携带应用前缀（index.html中相对路径将自动修复为前缀）
# live-app 子项目名称
# /dev/ 项目测试版上传路径
#  live-app项目预留路径
ng build live-app

# 清空旧文件目录
obsutil rm obs://gdchat-app -r -f -i=UFJ22GIEDLZAIU7Q7PM8 -k=biKvfZoA69m6dGb3cYvOilunwnW8wQOBvh5yNbGf -e="obs.cn-south-1.myhuaweicloud.com"

# 同步文件目录
obsutil sync ./dist/live-app/browser obs://gdchat-app  -i=UFJ22GIEDLZAIU7Q7PM8 -k=biKvfZoA69m6dGb3cYvOilunwnW8wQOBvh5yNbGf -e="obs.cn-south-1.myhuaweicloud.com" -acl=public-read

# 授权公开可读
obsutil chattri obs://gdchat-app -r -f -i=UFJ22GIEDLZAIU7Q7PM8 -k=biKvfZoA69m6dGb3cYvOilunwnW8wQOBvh5yNbGf -e="obs.cn-south-1.myhuaweicloud.com" -acl=public-read

# 超级权限（内部机密AKSK）
hcloud CDN CreateRefreshTasks/v2 --cli-region="cn-north-1" --refresh_task.urls.1="https://chat.gdchat.cn/" --refresh_task.type="directory" --cli-access-key=UFJ22GIEDLZAIU7Q7PM8 --cli-secret-key=biKvfZoA69m6dGb3cYvOilunwnW8wQOBvh5yNbGf