mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Package players and console to zip and docker. 3.0.160
This commit is contained in:
parent
44965da9af
commit
08500fe162
3 changed files with 12 additions and 12 deletions
|
@ -17,8 +17,6 @@ MIPS=NO
|
|||
#
|
||||
EMBEDED=NO
|
||||
JOBS=1
|
||||
#
|
||||
SRS_CONSOLE=
|
||||
|
||||
##################################################################################
|
||||
##################################################################################
|
||||
|
@ -43,7 +41,6 @@ do
|
|||
--arm) ARM=YES ;;
|
||||
--pi) PI=YES ;;
|
||||
--jobs) JOBS=$value ;;
|
||||
--console) SRS_CONSOLE=$value ;;
|
||||
|
||||
*)
|
||||
echo "$0: error: invalid option \"$option\", @see $0 --help"
|
||||
|
@ -157,14 +154,16 @@ ret=$?; if [[ 0 -ne ${ret} ]]; then failed_msg "install srs failed"; exit $ret;
|
|||
ok_msg "install srs success"
|
||||
|
||||
# Copy srs-console
|
||||
if [[ $SRS_CONSOLE != "" ]]; then
|
||||
HTTP_HOME="objs/nginx/html/"
|
||||
CONSOLE_HOME="trunk/research/console"
|
||||
cp -R $SRS_CONSOLE/index.html ${package_dir}/${INSTALL}/${HTTP_HOME} >> $log 2>&1
|
||||
cp -R $SRS_CONSOLE/${CONSOLE_HOME} ${package_dir}/${INSTALL}/${HTTP_HOME} >> $log 2>&1
|
||||
ret=$?; if [[ 0 -ne ${ret} ]]; then failed_msg "copy console files failed"; exit $ret; fi
|
||||
ok_msg "copy console files success"
|
||||
fi
|
||||
HTTP_HOME="${package_dir}/${INSTALL}/objs/nginx/html/"
|
||||
(
|
||||
cp $work_dir/research/api-server/static-dir/index.html ${HTTP_HOME} &&
|
||||
cp $work_dir/research/api-server/static-dir/favicon.ico ${HTTP_HOME} &&
|
||||
cp $work_dir/research/api-server/static-dir/crossdomain.xml ${HTTP_HOME} &&
|
||||
cp -R $work_dir/research/players ${HTTP_HOME} &&
|
||||
cp -R $work_dir/research/console ${HTTP_HOME}
|
||||
) >> $log 2>&1
|
||||
ret=$?; if [[ 0 -ne ${ret} ]]; then failed_msg "copy utilities failed"; exit $ret; fi
|
||||
ok_msg "copy utilities success"
|
||||
|
||||
# copy extra files to package.
|
||||
ok_msg "start copy extra files to package"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue