lib/entityjs/commands/build.rb in entityjs-0.4.2 vs lib/entityjs/commands/build.rb in entityjs-0.4.3

- old
+ new

@@ -17,10 +17,11 @@ build_folder = Config.instance.build_path assets_folder = Config.instance.build_assets_path images_folder = Config.images_folder sounds_folder = Config.sounds_folder scripts_folder = Config.scripts_folder + styles_folder = Config.instance.build_styles_path final_name = Config.instance.build_name+'.js' html_name = 'play.html' puts "Building to #{build_folder}" @@ -58,11 +59,13 @@ f.write(out) end #save css - File.open(Config.instance.build_styles_path+"/"+Config.instance.build_styles_name+'.css', 'w') do |f| + Dirc.create_dir(styles_folder) + + File.open(styles_folder+"/"+Config.instance.build_styles_name+'.css', 'w') do |f| f.write(css) end if Config.instance.build_ignore_play.nil? @@ -96,10 +99,10 @@ puts "Ignoring play.html" end puts "Build Complete!" puts "Build is at" - puts " #{File.expand_path(build_folder)}" + puts " #{build_folder}" Dirc.to_game_root return 0 end \ No newline at end of file