From 976ced04e889d48a652d544c635dafd7ff6f6100 Mon Sep 17 00:00:00 2001 From: _Tradam Date: Mon, 4 Apr 2022 15:29:01 -0400 Subject: working compile and playtest --- Rakefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index fabf46f..493d8f6 100644 --- a/Rakefile +++ b/Rakefile @@ -53,14 +53,16 @@ namespace :build do line.include? 'require ' end.join + Dir.mkdir("build") unless File.exists?("build") Dir.mkdir("build/temp") unless File.exists?("build/temp") File.write('build/temp/main.rb', result) end #desc 'Compile the game to bytecode' task :bytecode => :single_file do + Dir.mkdir("build") unless File.exists?("build") Dir.mkdir("build/temp") unless File.exists?("build/temp") Dir.chdir("build/temp") do - system("../../mruby/bin/mrbc -Bbytecode -obytecode.h main.rb") + system("../../core/mruby/bin/mrbc -Bbytecode -obytecode.h main.rb") end end desc 'Build the game for web' @@ -92,7 +94,7 @@ end desc 'Launch the game' task :playtest => "build:single_file" do Dir.chdir("game") do - system("../mruby/build/host/bin/mruby ../build/temp/main.rb") + system("../core/mruby/build/host/bin/mruby ../build/temp/main.rb") end end task :p => :playtest -- cgit v1.2.3