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

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

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


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

# 列举对象

obsutil cp W05.ttf obs://nova-cloud/dev/jxnu/202226701038/W05.ttf -f -i=XSUWJSVMZNHLWFAINRZ1 -k=P4TyfwfDovVNqz08tI1IXoLWXyEOSTKJRVlsGcV6 -e="obs.cn-south-1.myhuaweicloud.com"
# 删除指定文件：/dev/jxnu/<学号>/key.extend
