Enhance release script to support non-MacOS system (#5926)

This commit is contained in:
Zhenxu Ke 2020-11-30 21:16:08 +08:00 committed by GitHub
parent 821322447d
commit 8e2e9dfdaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 11 deletions

View File

@ -5,7 +5,7 @@ Release Notes.
8.4.0
------------------
#### Project
* Chore: adapt `create_source_release.sh` to make it runnable on Linux.
#### Java Agent

View File

@ -65,11 +65,9 @@ but just failure. Run `gpg --sign xxx` to any file could remember the password f
```shell
export RELEASE_VERSION=x.y.z (example: RELEASE_VERSION=5.0.0-alpha)
cd tools/releasing
sh create_source_release.sh
bash create_source_release.sh
```
**NOTICE**, `create_source_release.sh` is just suitable for MacOS. Welcome anyone to contribute Windows bat and Linux shell.
This scripts should do following things
1. Use `v` + `RELEASE_VERSION` as tag to clone the codes.
1. Make `git submodule init/update` done.

View File

@ -61,13 +61,11 @@ git submodule update
cd ..
tar czf ${PRODUCT_NAME}-src.tgz \
--exclude ${PRODUCT_NAME}/.git/ --exclude ${PRODUCT_NAME}/.DS_Store/ \
--exclude ${PRODUCT_NAME}/.github/ --exclude ${PRODUCT_NAME}/.gitignore/ \
--exclude ${PRODUCT_NAME}/.gitmodules/ \
--exclude ${PRODUCT_NAME}/skywalking-ui/.git/ --exclude ${PRODUCT_NAME}/skywalking-ui/.DS_Store/ \
--exclude ${PRODUCT_NAME}/skywalking-ui/.github/ --exclude ${PRODUCT_NAME}/skywalking-ui/.gitignore/ \
--exclude ${PRODUCT_NAME}/skywalking-ui/.travis.yml/ \
--exclude ${PRODUCT_NAME}/apm-protocol/apm-network/src/main/proto/.git/ \
--exclude .git \
--exclude .DS_Store \
--exclude .github \
--exclude .gitignore \
--exclude .gitmodules \
${PRODUCT_NAME}
gpg --armor --detach-sig ${PRODUCT_NAME}-src.tgz