mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 14:34:21 +02:00
Make new-version.rb windows delegate to generate-windows-versions.rb
This commit is contained in:
@@ -31,4 +31,3 @@ versions['mswin'] = 'https://github.com/MSP-Greg/ruby-loco/releases/download/rub
|
||||
versions['ucrt'] = 'https://github.com/MSP-Greg/ruby-loco/releases/download/ruby-master/ruby-ucrt.7z'
|
||||
|
||||
File.binwrite 'windows-versions.json', "#{JSON.pretty_generate(versions)}\n"
|
||||
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
engine_input, version = ARGV.fetch(0).split('-', 2)
|
||||
|
||||
if engine_input == 'windows'
|
||||
require_relative 'generate-windows-versions'
|
||||
exit
|
||||
end
|
||||
|
||||
MATCH = case engine_input
|
||||
when 'ruby', 'jruby'
|
||||
/^\d+\.\d+\./
|
||||
|
||||
Reference in New Issue
Block a user