add readme and build stuff

This commit is contained in:
Tommy Parnell
2017-02-11 00:33:43 -05:00
parent efd5f5b82c
commit 829ff3f742
4 changed files with 34 additions and 0 deletions

25
Rakefile Normal file
View 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