nICEnnnnnnnLee / BilibiliLiveRecorder

pure-java B站/Acfun/斗鱼/虎牙/快手/抖音/YY/战旗/花椒 直播视频录制。仅需Java环境即可运行【维护模式,不主动新增Feature】
Other
771 stars 107 forks source link

希望能出个docker版本的 #104

Closed Samre closed 1 year ago

nICEnnnnnnnLee commented 1 year ago

程序并不复杂,也没什么依赖。你如果一定要用docker的话,下载release压缩包,pull一个java镜像使用就行了。

BILI_WORK_DIR=/path/to/work

LATEST_RELEASE=$(curl https://api.github.com/repos/nICEnnnnnnnLee/BilibiliLiveRecorder/releases/latest)
LATEST_VERSION=$(echo $LATEST_RELEASE | sed -e 's/.*"tag_name": *"V\([^"]*\)".*/\1/')
ARTIFACT_URL="https://github.com/nICEnnnnnnnLee/BilibiliLiveRecorder/releases/download/V$LATEST_VERSION/BilibiliLiveRecord.v$LATEST_VERSION.zip"

cd $BILI_WORK_DIR
curl -LJO $ARTIFACT_URL
unzip -o "BilibiliLiveRecord.v$LATEST_VERSION.zip"
docker pull openjdk:11
docker run -d -v "$BILI_WORK_DIR:/home" -w /home --name bili_record openjdk:11 \
    java -Dfile.encoding=utf-8 -jar BiliLiveRecorder.jar "debug=false&check=false&delete=false&liver=douyu&id=233233&qn=0&retry=5"
Samre commented 1 year ago

ok

github-actions[bot] commented 1 year ago

由于长期没有状态更新,该问题自动关闭。如有需要可重新打开。