Support for linux open
This commit is contained in:
parent
4d2d7ddfc1
commit
5b8a915b41
9
Rakefile
9
Rakefile
|
@ -126,7 +126,14 @@ end
|
|||
|
||||
task :default => [ :odin_lab ]
|
||||
task :open => :default do
|
||||
system("open build/index.html")
|
||||
case `uname`.chomp
|
||||
when "Darwin"
|
||||
system("open build/index.html")
|
||||
when "Linux"
|
||||
system("xdg-open build/index.html &>/dev/null")
|
||||
else
|
||||
puts "Unknown platform #{`uname`}; Can't open"
|
||||
end
|
||||
end
|
||||
task :clean do
|
||||
system("rm -r build")
|
||||
|
|
Loading…
Reference in a new issue