add readme and build stuff
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -276,3 +276,5 @@ __pycache__/
|
|||||||
# Cake - Uncomment if you are using it
|
# Cake - Uncomment if you are using it
|
||||||
# tools/**
|
# tools/**
|
||||||
# !tools/packages.config
|
# !tools/packages.config
|
||||||
|
|
||||||
|
Gemfile.lock
|
||||||
4
Gemfile
Normal file
4
Gemfile
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
source 'https://rubygems.org' do
|
||||||
|
gem 'rake'
|
||||||
|
gem 'json'
|
||||||
|
end
|
||||||
25
Rakefile
Normal file
25
Rakefile
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
require 'json'
|
||||||
|
require 'rake/clean'
|
||||||
|
|
||||||
|
CLEAN.include(['**/bin', '**/obj'])
|
||||||
|
|
||||||
|
desc 'clean, build, publish'
|
||||||
|
task :preflight => [:clean, :build, :publish]
|
||||||
|
|
||||||
|
desc 'restore nuget packages things'
|
||||||
|
task :restore do
|
||||||
|
sh "dotnet restore src/TwitchChat"
|
||||||
|
end
|
||||||
|
|
||||||
|
desc 'build our code'
|
||||||
|
task :build do
|
||||||
|
sh "dotnet build src/TwitchChat -c release"
|
||||||
|
end
|
||||||
|
|
||||||
|
desc 'publish all runtimes'
|
||||||
|
task :publish => :restore do
|
||||||
|
text = File.read('src/TwitchChat/project.json')
|
||||||
|
JSON.parse(text)["runtimes"].each{|t, v|
|
||||||
|
sh "dotnet publish src/TwitchChat/ -c Release -r #{t}"
|
||||||
|
}
|
||||||
|
end
|
||||||
3
Readme.md
Normal file
3
Readme.md
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
This is a simple cli tool that lets you read your twitch stream via the command line. Obviously this is much more lightweight than running browsers or UI.
|
||||||
|
|
||||||
|
You need [dotnet core](https://dot.net) installed to compile this. I have provided a Rakefile (which is ran with ruby) to also compile out the app.
|
||||||
Reference in New Issue
Block a user