Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

加入删除前判断 #64

Merged
merged 1 commit into from
Jul 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,7 @@ record_twitcast.py是录制twitcast的websocket流的精简脚本
感谢[live-stream-recorder](https://github.com/printempw/live-stream-recorder)[GiGaFotress/Vtuber-recorder](https://github.com/GiGaFotress/Vtuber-recorder)

## 安装方法
#### 一键安装
`curl https://raw.githubusercontent.com/lovezzzxxx/liverecord/master/install.sh | bash`
* __一键脚本安装后脚本调用方式应为`record/record_new.sh`而非下文示例中的`./record_new.sh`__
* 一键脚本将会自动安装下列所有环境依赖, __同时会覆盖安装go环境并添加一些环境变量__ ,如果有需要可以注释掉相应的命令或者手动安装环境依赖
* 其中record.sh、record_new.sh和record_twitcast.py会保存于运行时命令行所在目录的record文件夹下,livedl会保存于运行时命令行所在目录的livedl文件夹下, BilibiliLiveRecorder会解压到运行时命令行所在目录的BilibiliLiveRecorder文件夹下
* 一键脚本运行结束后会提示仍需要手动进行的操作,如更新环境变量和登录网盘账号

#### 手动安装
#### 手动安装(推荐)

<details>
<summary>环境依赖</summary>
Expand All @@ -38,6 +31,14 @@ record_twitcast.py是录制twitcast的websocket流的精简脚本

</details>

#### 一键安装(谨慎使用)

`curl https://raw.githubusercontent.com/lovezzzxxx/liverecord/master/install.sh | bash`
* __一键脚本安装后脚本调用方式应为`record/record_new.sh`而非下文示例中的`./record_new.sh`__
* 一键脚本将会自动安装下列所有环境依赖, __同时会覆盖安装go环境并添加一些环境变量__ ,如果有需要可以注释掉相应的命令或者手动安装环境依赖
* 其中record.sh、record_new.sh和record_twitcast.py会保存于运行时命令行所在目录的record文件夹下,livedl会保存于运行时命令行所在目录的livedl文件夹下, BilibiliLiveRecorder会解压到运行时命令行所在目录的BilibiliLiveRecorder文件夹下
* 一键脚本运行结束后会提示仍需要手动进行的操作,如更新环境变量和登录网盘账号

## 使用方法
#### 方法
`./record_new.sh [-参数 值] 频道类型 频道号码`
Expand Down
8 changes: 7 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ echo 'export PATH=$PATH:/usr/local/go/bin'>>~/.bashrc #修改默认环境变量
export PATH=$PATH:/usr/local/go/bin
sudo apt -y install git ; sudo apt -y install build-essential
echo "此处可能需要较长时间,请耐心等待"
git clone -b module https://github.com/nnn-revo2012/livedl.git ; cd livedl/src ; go build -o livedl livedl.go ; rm -r `ls | grep -v "^livedl$"` ; cd ../../ #编译安装livedl
git clone https://github.com/nnn-revo2012/livedl.git ;
if [ ! -d "/livedl" ]; then
echo "livedl 项目文件夹不存在,请确认该项目的github仓库 https://github.com/nnn-revo2012/livedl 是否被删除"
exit 1
else
cd livedl/src ; go build -o livedl livedl.go ; rm -r `ls | grep -v "^livedl$"` ; cd ../../ #编译安装livedl
fi

#安装java相关下载工具
apt -y install default-jre
Expand Down