Giter Club home page Giter Club logo

livedl's Introduction

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

以上

livedl's People

Contributors

himananiito avatar sarami55 avatar

Stargazers

 avatar あめ avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.