mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Release v4.0-b0, 4.0 beta0, v4.0.201, 144022 lines.
This commit is contained in:
parent
1ba3de1139
commit
04a8a2866b
5 changed files with 28 additions and 18 deletions
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
|
@ -21,6 +21,7 @@ jobs:
|
|||
# SRS_TAG=v4.0-r8
|
||||
# SRS_TAG=v4.0.145
|
||||
# SRS_VERSION=4.0.145
|
||||
# SRS_VERSION=4.0-r8
|
||||
# SRS_MAJOR=4
|
||||
# @see https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable
|
||||
- name: Generate varaiables
|
||||
|
|
|
@ -107,6 +107,7 @@ A big THANK YOU goes to:
|
|||
|
||||
## Releases
|
||||
|
||||
* 2021-12-01, Release [v4.0-b0][https://github.com/ossrs/srs/releases/tag/v4.0-b0], v4.0-b0, 4.0 beta0, v4.0.201, 144022 lines.
|
||||
* 2021-11-15, Release [v4.0.198](https://github.com/ossrs/srs/releases/tag/v4.0.198), 4.0 dev8, v4.0.198, 144010 lines.
|
||||
* 2021-11-02, Release [v4.0.191](https://github.com/ossrs/srs/releases/tag/v4.0.191), 4.0 dev7, v4.0.191, 143890 lines.
|
||||
* 2021-10-12, Release [v4.0.177](https://github.com/ossrs/srs/releases/tag/v4.0.177), 4.0 dev6, v4.0.177, 143686 lines.
|
||||
|
|
|
@ -12,5 +12,5 @@ ENV SRS_AUTO_PACKAGER ossrs
|
|||
# Build and install SRS.
|
||||
ADD srs-server-${version}.tar.gz /srs
|
||||
WORKDIR /srs/srs-server-${version}/trunk
|
||||
RUN ./scripts/package.sh --x86-x64 --jobs=2
|
||||
RUN ./scripts/package.sh --x86-x64 --jobs=2 --tag=${version}
|
||||
|
||||
|
|
|
@ -17,6 +17,8 @@ MIPS=NO
|
|||
#
|
||||
EMBEDED=NO
|
||||
JOBS=1
|
||||
#
|
||||
SRS_TAG=
|
||||
|
||||
##################################################################################
|
||||
##################################################################################
|
||||
|
@ -27,12 +29,13 @@ do
|
|||
case "$option" in
|
||||
-*=*)
|
||||
value=`echo "$option" | sed -e 's|[-_a-zA-Z0-9/]*=||'`
|
||||
option=`echo "$option" | sed -e 's|=[-_a-zA-Z0-9/~]*||'`
|
||||
option=`echo "$option" | awk -F '=' '{print $1}'`
|
||||
;;
|
||||
*) value="" ;;
|
||||
esac
|
||||
|
||||
case "$option" in
|
||||
-h) help=yes ;;
|
||||
--help) help=yes ;;
|
||||
|
||||
--x86-x64) X86_X64=YES ;;
|
||||
|
@ -41,6 +44,7 @@ do
|
|||
--arm) ARM=YES ;;
|
||||
--pi) PI=YES ;;
|
||||
--jobs) JOBS=$value ;;
|
||||
--tag) SRS_TAG=$value ;;
|
||||
|
||||
*)
|
||||
echo "$0: error: invalid option \"$option\", @see $0 --help"
|
||||
|
@ -51,14 +55,15 @@ done
|
|||
if [ $help = yes ]; then
|
||||
cat << END
|
||||
|
||||
--help print this message
|
||||
--help Print this message
|
||||
|
||||
--x86-x64 for x86-x64 platform, configure/make/package.
|
||||
--arm for arm cross-build platform, configure/make/package.
|
||||
--mips for mips cross-build platform, configure/make/package.
|
||||
--pi for pi platform, configure/make/package.
|
||||
--x86-64 alias for --x86-x64.
|
||||
--x86-x64 For x86-x64 platform, configure/make/package.
|
||||
--x86-64 Alias for --x86-x64.
|
||||
--arm For arm cross-build platform, configure/make/package.
|
||||
--mips For mips cross-build platform, configure/make/package.
|
||||
--pi For pi platform, configure/make/package.
|
||||
--jobs Set the configure and make jobs.
|
||||
--tag Set the version in zip file.
|
||||
END
|
||||
exit 0
|
||||
fi
|
||||
|
@ -116,7 +121,7 @@ ok_msg "real os is ${os_name}-${os_major_version} ${os_release} ${os_machine}"
|
|||
|
||||
# build srs
|
||||
# @see https://github.com/ossrs/srs/wiki/v1_CN_Build
|
||||
ok_msg "start build srs, ARM: $ARM, MIPS: $MIPS, PI: $PI, X86_64: $X86_X64, JOBS: $JOBS"
|
||||
ok_msg "start build srs, ARM: $ARM, MIPS: $MIPS, PI: $PI, X86_64: $X86_X64, JOBS: $JOBS, TAG: $SRS_TAG"
|
||||
if [ $ARM = YES ]; then
|
||||
(
|
||||
cd $work_dir &&
|
||||
|
@ -174,6 +179,8 @@ fi
|
|||
ok_msg "machine: $os_machine"
|
||||
|
||||
# generate zip dir and zip filename
|
||||
srs_version=$SRS_TAG
|
||||
if [[ $srs_version == '' ]]; then
|
||||
if [ $EMBEDED = YES ]; then
|
||||
srs_version_major=`cat $work_dir/src/core/srs_core.hpp| grep '#define VERSION_MAJOR'| awk '{print $3}'|xargs echo` &&
|
||||
srs_version_minor=`cat $work_dir/src/core/srs_core.hpp| grep '#define VERSION_MINOR'| awk '{print $3}'|xargs echo` &&
|
||||
|
@ -183,6 +190,7 @@ else
|
|||
srs_version=`${build_objs}/srs -v 2>/dev/stdout 1>/dev/null`
|
||||
fi
|
||||
ret=$?; if [[ 0 -ne ${ret} ]]; then failed_msg "get srs version failed"; exit $ret; fi
|
||||
fi
|
||||
ok_msg "get srs version $srs_version"
|
||||
|
||||
zip_dir="SRS-${os_name}${os_major_version}-${os_machine}-${srs_version}"
|
||||
|
|
|
@ -9,6 +9,6 @@
|
|||
|
||||
#define VERSION_MAJOR 4
|
||||
#define VERSION_MINOR 0
|
||||
#define VERSION_REVISION 200
|
||||
#define VERSION_REVISION 201
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue