Skip to content

Commit

Permalink
Merge pull request #64 from SekiBetu/master
Browse files Browse the repository at this point in the history
加入删除前判断
  • Loading branch information
lovezzzxxx authored Jul 20, 2021
2 parents 7da8204 + 5e382fc commit 04015d3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
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

0 comments on commit 04015d3

Please sign in to comment.