summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--Rakefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index afd4383..1026af1 100644
--- a/Rakefile
+++ b/Rakefile
@@ -45,7 +45,9 @@ end
def run_web_test(file)
print_task "Running web build test"
run_cmd "ruby2d build --web test/#{file}.rb --debug"
- system "open build/app.html"
+ open_cmd = 'open'
+ if RUBY_PLATFORM =~ /linux/ then open_cmd = "xdg-#{open_cmd}" end
+ system "#{open_cmd} build/app.html"
end
# Tasks