diff --git a/build_discuz b/build_discuz index b4499bc8d21a2b8161a2c15dbea4ce807511573c..00a9bbd5442c0581f0fadc8c98cc0fc5e5f64598 100755 --- a/build_discuz +++ b/build_discuz @@ -17,7 +17,7 @@ echo "---- Build Discuz Q and Commit to Git Repo -----------------------------" [ "$DRY_RUN" = "-n" ] && echo "Dry run, no changes will be pushed to remote" # DiscuzQ后端代码 仓库 -DISCUZ_REPO="git@gitee.com:kotlindev/Discuz-Q.git" +DISCUZ_REPO="git@gitee.com:Discuz/Discuz-Q.git" # DiscuzQ前台代码 编译后的静态资源仓库 DISCUZ_WEB="git@gitee.com:kotlindev/dzq-default-web-static.git" # DiscuzQ后台代码 编译后的静态资源仓库 diff --git a/build_vendor b/build_vendor index fb6a3be18faa3da8ef61b09889526a2661dc5f08..43163bca00044dc8087ffee86121268cf2dec8d5 100755 --- a/build_vendor +++ b/build_vendor @@ -115,6 +115,27 @@ function cleanup_vendor() { done } +function make_zip() { + cd $BASE/dzfull_temp + echo "---- making zip" + zip -q -r dzq_latest_offline.zip composer.lock + zip -q -r dzq_latest_offline.zip vendor +} + +function upload_zip_to_cos() { + cd $BASE/dzfull_temp + if [ ! "$DRY_RUN" = "-n" ]; then + echo "---- uploading to cos" + coscmd upload dzq_latest_offline.zip /offline/$TAG.zip + coscmd upload dzq_latest_offline.zip /dzq_latest_offline.zip + + echo "---- removing zip" + rm -f dzq_latest_offline.zip + else + echo "---- Dry run mode, do not actually upload to cos" + fi +} + function make_full_install_pack() { cd $BASE/dzfull_temp rm -f ../dzq_latest_install.zip @@ -259,5 +280,8 @@ install_dzq export_database cleanup_dzq +make_zip +upload_zip_to_cos + make_full_install_pack upload_full_zip_to_cos