File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ require 'fileutils'
2+
3+ MRUBY_VERSION = "1.2.0"
4+
15file :mruby do
2- sh "git clone --depth=1 https://github.com/mruby/mruby"
6+ #sh "git clone --depth=1 https://github.com/mruby/mruby"
7+ sh "curl -L --fail --retry 3 --retry-delay 1 https://github.com/mruby/mruby/archive/#{ MRUBY_VERSION } .tar.gz -s -o - | tar zxf -"
8+ FileUtils . mv ( "mruby-#{ MRUBY_VERSION } " , "mruby" )
39end
410
511APP_NAME = ENV [ "APP_NAME" ] || "mruby-cli"
6773desc "generate a release tarball"
6874task :release do
6975 require 'tmpdir'
70- require 'fileutils'
7176 require_relative 'mrblib/mruby-cli/version'
7277
7378 # since we're in the mruby/
Original file line number Diff line number Diff line change @@ -306,8 +306,14 @@ def docker_compose_yml
306306
307307 def rakefile
308308 <<RAKEFILE
309+ require 'fileutils'
310+
311+ MRUBY_VERSION="1.2.0"
312+
309313file :mruby do
310- sh "git clone --depth=1 https://github.com/mruby/mruby"
314+ #sh "git clone --depth=1 https://github.com/mruby/mruby"
315+ sh "curl -L --fail --retry 3 --retry-delay 1 https://github.com/mruby/mruby/archive/#{ MRUBY_VERSION } .tar.gz -s -o - | tar zxf -"
316+ FileUtils.mv("mruby-#{ MRUBY_VERSION } ", "mruby")
311317end
312318
313319APP_NAME=ENV["APP_NAME"] || "#{ @name } "
You can’t perform that action at this time.
0 commit comments