livedl

command module
v0.0.0-...-e300b18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2021 License: MIT Imports: 10 Imported by: 0

README

livedl

新配信(HTML5)に対応したニコ生録画ツール。ニコ生以外のサイトにも対応予定

使い方

https://himananiito.hatenablog.jp/entry/livedl を参照

Linux(Ubuntu)でのビルド方法

cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.2 LTS (Xenial Xerus)"
Go実行環境のインストール (無い場合)
wget https://dl.google.com/go/go1.10.3.linux-amd64.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go1.10.3.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
# 必要であれば、bashrcなどにPATHを追加する
gitをインストール (無い場合)
sudo apt-get install git
gccなどのビルドツールをインストール (無い場合)
sudo apt-get install build-essential
必要なgoのモジュールをインストール
go get github.com/gorilla/websocket
go get golang.org/x/crypto/sha3
go get github.com/mattn/go-sqlite3
go get github.com/gin-gonic/gin
livedlのソースを取得
git clone https://github.com/himananiito/livedl.git
livedlのコンパイル

ディレクトリを移動

cd livedl
(オプション)特定のバージョンを選択する場合
$ git tag
20180513.6
20180514.7
...
20180729.21
20180807.22
$ git checkout 20180729.21 (選んだバージョン)
(オプション)最新のコードをビルドする場合
git checkout master

ビルドする

go build src/livedl.go

もし、cannot find package "github.com/gin-gonic/gin" in any of:

など出る場合は、 go get github.com/gin-gonic/gin (適宜読み替える)したのちgo build src/livedl.goを再実行する

./livedl -h
livedl (20180807.22-linux)

Windows(32bit及び64bit上での32bit向け)コンパイル方法

gccのインストール

gcc には必ず以下を使用すること。

http://tdm-gcc.tdragon.net/download

環境変数で(例)C:\TDM-GCC-64\binが他のgccより優先されるように設定すること。

必要なgoのモジュール

linuxの説明に倣ってインストールする。

コンパイル

PowerSellで、build-386.ps1 を実行する。または以下を実行する。

set-item env:GOARCH -value 386
set-item env:CGO_ENABLED -value 1
go build -o livedl.x86.exe src/livedl.go
32bit環境でx509: certificate signed by unknown authorityが出る

動けばいいのであればオプションで以下を指定する。

-http-skip-verify=on

Dockerでビルド

livedlのソースを取得
git clone https://github.com/himananiito/livedl.git
cd livedl
git checkout master # Or another version that supports docker (contains Dockerfile)
イメージ作成
docker build -t <your_image_tag> .
イメージの使い方
  • 出力フォルダを/livedlにマウント
  • 通常のパラメーターに加えて--no-chdirを渡す
docker run -it --rm -v ~/livedl:/livedl <your_image_tag> livedl --no-chdir <other_parameters> ...

以上

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL