Support for linux open

This commit is contained in:
Oliver Kennedy 2019-02-17 00:49:27 -05:00
parent 4d2d7ddfc1
commit 5b8a915b41

View file

@ -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")