summaryrefslogtreecommitdiffhomepage
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/Rakefile b/Rakefile
index 6868c2c..3b68579 100644
--- a/Rakefile
+++ b/Rakefile
@@ -35,10 +35,6 @@ namespace :build do
system("../../mruby/bin/mrbc -Bbytecode -obytecode.h main.rb")
end
end
- desc 'Launch the game'
- task :playtest => :single_file do
- system("./mruby/build/host/bin/mruby build/temp/main.rb'")
- end
desc 'Build the game for web'
task :web => :bytecode do
Dir.mkdir("build/web") unless File.exists?("build/web")
@@ -62,6 +58,15 @@ namespace :build do
#end
end
+desc 'Launch the game'
+task :playtest => "build:single_file" do
+ Dir.chdir("build/temp") do
+ system("../../mruby/build/host/bin/mruby main.rb")
+ end
+end
+task :p => :playtest
+
+
namespace :clean do
desc "Clean the mruby build folders"
task :mruby do