#!/bin/bash
# 重新生成下载页和全量 zip，然后同步到 shihe 服务器
set -e
cd "$(dirname "$0")"
python3 生成下载页.py
rsync -avz --delete --exclude '.DS_Store' --exclude '.git' --exclude '.ssh' ./ shihe:/www/wwwroot/nobadybox-files/
ssh shihe 'chown -R www:www /www/wwwroot/nobadybox-files'
echo "完成：http://47.119.151.148/nobadybox-files/"
