【打包】关闭 打新包时删除该版本旧资源功能

main
zhangaotian 2024-05-14 16:42:07 +08:00
parent 9e7f5ed266
commit 12b8ca0f4a
1 changed files with 3 additions and 3 deletions

View File

@ -28,9 +28,9 @@ BUILD_PATH="../../ProjectNLD/ServerData/$PLATFORM/"
NOTE_URL="https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=3c92758c-1128-4931-ac8d-f19669d7befe"
# Check if NEWASSETS is true, if so, delete existing assets on remote server
if [ "$NEWASSETS" = "true" ]; then
ssh "$REMOTE_USER@$REMOTE_HOST" "rm -rf $REMOTE_PATH/*"
fi
#if [ "$NEWASSETS" = "true" ]; then
# ssh "$REMOTE_USER@$REMOTE_HOST" "rm -rf $REMOTE_PATH/*"
#fi
tar -czvf upload.tgz -C "$BUILD_PATH" .
ssh "$REMOTE_USER@$REMOTE_HOST" "mkdir -p $REMOTE_PATH"