mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 03:41:55 +00:00
Refine the signaling dynamic images.
This commit is contained in:
parent
2633f03954
commit
ec5bdc7dfa
6 changed files with 32 additions and 72 deletions
2
trunk/3rdparty/signaling/.gitignore
vendored
2
trunk/3rdparty/signaling/.gitignore
vendored
|
@ -17,3 +17,5 @@
|
|||
.format.txt
|
||||
objs
|
||||
.DS_Store
|
||||
.idea
|
||||
|
||||
|
|
27
trunk/3rdparty/signaling/auto/pub.sh
vendored
Executable file
27
trunk/3rdparty/signaling/auto/pub.sh
vendored
Executable file
|
@ -0,0 +1,27 @@
|
|||
#!/bin/bash
|
||||
|
||||
REALPATH=$(realpath $0)
|
||||
WORK_DIR=$(cd $(dirname $REALPATH)/.. && pwd)
|
||||
echo "Run pub at $WORK_DIR from $0"
|
||||
cd $WORK_DIR
|
||||
|
||||
git st |grep -q 'nothing to commit'
|
||||
if [[ $? -ne 0 ]]; then
|
||||
echo "Failed: Please commit before release";
|
||||
exit 1
|
||||
fi
|
||||
|
||||
RELEASE=$(git describe --tags --abbrev=0 --exclude release-*)
|
||||
REVISION=$(echo $RELEASE|awk -F . '{print $3}')
|
||||
let NEXT=$REVISION+1
|
||||
echo "Last release is $RELEASE, revision is $REVISION, next is $NEXT"
|
||||
|
||||
TAG="v1.0.$NEXT"
|
||||
echo "publish $TAG"
|
||||
|
||||
git push
|
||||
git tag -d $TAG 2>/dev/null && git push origin :$TAG
|
||||
git tag $TAG
|
||||
git push origin $TAG
|
||||
echo "publish $TAG ok"
|
||||
echo " https://github.com/ossrs/signaling/actions"
|
70
trunk/3rdparty/signaling/auto/release.sh
vendored
70
trunk/3rdparty/signaling/auto/release.sh
vendored
|
@ -1,70 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
SRS_GIT=$HOME/git/signaling
|
||||
SRS_TAG=
|
||||
|
||||
# linux shell color support.
|
||||
RED="\\033[31m"
|
||||
GREEN="\\033[32m"
|
||||
YELLOW="\\033[33m"
|
||||
BLACK="\\033[0m"
|
||||
|
||||
function NICE() {
|
||||
echo -e "${GREEN}$@${BLACK}"
|
||||
}
|
||||
|
||||
function TRACE() {
|
||||
echo -e "${BLACK}$@${BLACK}"
|
||||
}
|
||||
|
||||
function WARN() {
|
||||
echo -e "${YELLOW}$@${BLACK}"
|
||||
}
|
||||
|
||||
function ERROR() {
|
||||
echo -e "${RED}$@${BLACK}"
|
||||
}
|
||||
|
||||
##################################################################################
|
||||
##################################################################################
|
||||
##################################################################################
|
||||
if [[ -z $SRS_TAG ]]; then
|
||||
SRS_TAG=`(cd $SRS_GIT && git describe --tags --abbrev=0 --exclude release-* 2>/dev/null)`
|
||||
if [[ $? -ne 0 ]]; then
|
||||
echo "Invalid tag $SRS_TAG of $SRS_FILTER in $SRS_GIT"
|
||||
exit -1
|
||||
fi
|
||||
fi
|
||||
|
||||
NICE "Build docker for $SRS_GIT, tag is $SRS_TAG"
|
||||
|
||||
git ci -am "Release $SRS_TAG"
|
||||
|
||||
# For aliyun hub.
|
||||
NICE "aliyun hub release-v$SRS_TAG"
|
||||
|
||||
echo "git push aliyun"
|
||||
git push aliyun
|
||||
|
||||
git tag -d release-v$SRS_TAG 2>/dev/null
|
||||
echo "Cleanup tag $SRS_TAG for aliyun"
|
||||
|
||||
git tag release-v$SRS_TAG; git push -f aliyun release-v$SRS_TAG
|
||||
echo "Create new tag $SRS_TAG for aliyun"
|
||||
echo ""
|
||||
|
||||
NICE "aliyun hub release-vlatest"
|
||||
git tag -d release-vlatest 2>/dev/null
|
||||
echo "Cleanup tag latest for aliyun"
|
||||
|
||||
git tag release-vlatest; git push -f aliyun release-vlatest
|
||||
echo "Create new tag latest for aliyun"
|
||||
|
||||
# For github.com
|
||||
echo "git push origin"
|
||||
git push origin
|
||||
|
||||
echo "git push origin $SRS_TAG"
|
||||
git push origin $SRS_TAG
|
||||
|
||||
NICE "Update github ok"
|
1
trunk/3rdparty/signaling/www/demos/img/shields-io-signaling.svg
vendored
Normal file
1
trunk/3rdparty/signaling/www/demos/img/shields-io-signaling.svg
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="82" height="20"><style>a:hover #llink{fill:url(#b);stroke:#ccc}a:hover #rlink{fill:#4183c4}</style><linearGradient id="a" x2="0" y2="100%"><stop offset="0" stop-color="#fcfcfc" stop-opacity="0"/><stop offset="1" stop-opacity=".1"/></linearGradient><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#ccc" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><g stroke="#d5d5d5"><rect stroke="none" fill="#fcfcfc" x="0.5" y="0.5" width="54" height="19" rx="2"/><rect x="60.5" y="0.5" width="21" height="19" rx="2" fill="#fafafa"/><rect x="60" y="7.5" width="0.5" height="5" stroke="#fafafa"/><path d="M60.5 6.5 l-3 3v1 l3 3" stroke="d5d5d5" fill="#fafafa"/></g><image x="5" y="3" width="14" height="14" xlink:href="data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjMTgxNzE3IiByb2xlPSJpbWciIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48dGl0bGU+R2l0SHViPC90aXRsZT48cGF0aCBkPSJNMTIgLjI5N2MtNi42MyAwLTEyIDUuMzczLTEyIDEyIDAgNS4zMDMgMy40MzggOS44IDguMjA1IDExLjM4NS42LjExMy44Mi0uMjU4LjgyLS41NzcgMC0uMjg1LS4wMS0xLjA0LS4wMTUtMi4wNC0zLjMzOC43MjQtNC4wNDItMS42MS00LjA0Mi0xLjYxQzQuNDIyIDE4LjA3IDMuNjMzIDE3LjcgMy42MzMgMTcuN2MtMS4wODctLjc0NC4wODQtLjcyOS4wODQtLjcyOSAxLjIwNS4wODQgMS44MzggMS4yMzYgMS44MzggMS4yMzYgMS4wNyAxLjgzNSAyLjgwOSAxLjMwNSAzLjQ5NS45OTguMTA4LS43NzYuNDE3LTEuMzA1Ljc2LTEuNjA1LTIuNjY1LS4zLTUuNDY2LTEuMzMyLTUuNDY2LTUuOTMgMC0xLjMxLjQ2NS0yLjM4IDEuMjM1LTMuMjItLjEzNS0uMzAzLS41NC0xLjUyMy4xMDUtMy4xNzYgMCAwIDEuMDA1LS4zMjIgMy4zIDEuMjMuOTYtLjI2NyAxLjk4LS4zOTkgMy0uNDA1IDEuMDIuMDA2IDIuMDQuMTM4IDMgLjQwNSAyLjI4LTEuNTUyIDMuMjg1LTEuMjMgMy4yODUtMS4yMy42NDUgMS42NTMuMjQgMi44NzMuMTIgMy4xNzYuNzY1Ljg0IDEuMjMgMS45MSAxLjIzIDMuMjIgMCA0LjYxLTIuODA1IDUuNjI1LTUuNDc1IDUuOTIuNDIuMzYuODEgMS4wOTYuODEgMi4yMiAwIDEuNjA2LS4wMTUgMi44OTYtLjAxNSAzLjI4NiAwIC4zMTUuMjEuNjkuODI1LjU3QzIwLjU2NSAyMi4wOTIgMjQgMTcuNTkyIDI0IDEyLjI5N2MwLTYuNjI3LTUuMzczLTEyLTEyLTEyIi8+PC9zdmc+"/><g aria-hidden="false" fill="#333" text-anchor="middle" font-family="Helvetica Neue,Helvetica,Arial,sans-serif" text-rendering="geometricPrecision" font-weight="700" font-size="110px" line-height="14px"><a target="_blank" xlink:href="https://github.com/ossrs/signaling"><text aria-hidden="true" x="355" y="150" fill="#fff" transform="scale(.1)" textLength="270">Stars</text><text x="355" y="140" transform="scale(.1)" textLength="270">Stars</text><rect id="llink" stroke="#d5d5d5" fill="url(#a)" x=".5" y=".5" width="54" height="19" rx="2"/></a><a target="_blank" xlink:href="https://github.com/ossrs/signaling/stargazers"><rect width="22" x="60" height="20" fill="rgba(0,0,0,0)"/><text aria-hidden="true" x="705" y="150" fill="#fff" transform="scale(.1)" textLength="130">27</text><text id="rlink" x="705" y="140" transform="scale(.1)" textLength="130">27</text></a></g></svg>
|
After Width: | Height: | Size: 2.8 KiB |
|
@ -26,7 +26,7 @@
|
|||
<li><a href="room.html">多人通话</a></li>
|
||||
<li class="srs_ignore">
|
||||
<a href="https://github.com/ossrs/signaling">
|
||||
<img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/ossrs/signaling?style=social">
|
||||
<img alt="GitHub Repo stars" src="img/shields-io-signaling.svg">
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
2
trunk/3rdparty/signaling/www/demos/room.html
vendored
2
trunk/3rdparty/signaling/www/demos/room.html
vendored
|
@ -26,7 +26,7 @@
|
|||
<li class="active"><a href="room.html">多人通话</a></li>
|
||||
<li class="srs_ignore">
|
||||
<a href="https://github.com/ossrs/signaling">
|
||||
<img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/ossrs/signaling?style=social">
|
||||
<img alt="GitHub Repo stars" src="img/shields-io-signaling.svg">
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
Loading…
Reference in a new issue