# 打包项目，携带应用前缀（index.html中相对路径将自动修复为/dev/jxnu/<学号>前缀）
# /dev/ 项目测试版上传路径
# /dev/jxnu/<学号> nova-crm项目预留路径
set NODE_OPTIONS=–max_old_space_size=16000
node ./node_modules/@angular/cli/bin/ng build --base-href="/dev/jxnu/20226701052/"

# 清空旧文件目录
obsutil rm obs://nova-cloud/dev/jxnu/20226701052 -r -f -i=XSUWJSVMZNHLWFAINRZ1 -k=P4TyfwfDovVNqz08tI1IXoLWXyEOSTKJRVlsGcV6 -e="obs.cn-south-1.myhuaweicloud.com"

# 同步文件目录
obsutil sync ./www obs://nova-cloud/dev/jxnu/20226701052  -i=XSUWJSVMZNHLWFAINRZ1 -k=P4TyfwfDovVNqz08tI1IXoLWXyEOSTKJRVlsGcV6 -e="obs.cn-south-1.myhuaweicloud.com" -acl=public-read


# 授权公开可读
obsutil chattri obs://nova-cloud/dev/jxnu/20226701052 -r -f -i=XSUWJSVMZNHLWFAINRZ1 -k=P4TyfwfDovVNqz08tI1IXoLWXyEOSTKJRVlsGcV6 -e="obs.cn-south-1.myhuaweicloud.com" -acl=public-read

# 列举对象
obsutil ls obs://nova-cloud/dev/jxnu/20226701052  -i=XSUWJSVMZNHLWFAINRZ1 -k=P4TyfwfDovVNqz08tI1IXoLWXyEOSTKJRVlsGcV6 -e="obs.cn-south-1.myhuaweicloud.com"

