File tree Expand file tree Collapse file tree 3 files changed +20
-4
lines changed
Expand file tree Collapse file tree 3 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env ruby
22
3- raise "Usage: #{ $0} NEW_VERSION SHA" unless ARGV . size == 2
4- new_version , sha = ARGV
3+ require 'open-uri'
4+ require 'digest/sha2'
5+ require 'tempfile'
6+
7+ raise "Usage: #{ $0} NEW_VERSION" unless ARGV . size == 1
8+ new_version = ARGV [ 0 ]
59
610major_minor = new_version . split ( '.' ) [ 0 ..1 ] . join ( '.' )
711
12+ url = "https://github.com/openssl/openssl/releases/download/openssl-#{ new_version } /openssl-#{ new_version } .tar.gz"
13+ sha = nil
14+
15+ Tempfile . create ( [ 'openssl' , '.tar.gz' ] ) do |tmpfile |
16+ URI . open ( url ) do |remote_file |
17+ IO . copy_stream ( remote_file , tmpfile )
18+ end
19+ tmpfile . rewind
20+
21+ sha = Digest ::SHA256 . file ( tmpfile . path ) . hexdigest
22+ end
23+
824Dir . glob ( 'share/ruby-build/*' ) do |file |
925 contents = File . read ( file )
1026
Original file line number Diff line number Diff line change 1- install_package "openssl-3.0.18 " "https://github.com/openssl/openssl/releases/download/openssl-3.0.18 /openssl-3.0.18 .tar.gz#d80c34f5cf902dccf1f1b5df5ebb86d0392e37049e5d73df1b3abae72e4ffe8b " openssl --if needs_openssl:1.0.2-3.x.x
1+ install_package "openssl-3.5.4 " "https://github.com/openssl/openssl/releases/download/openssl-3.5.4 /openssl-3.5.4 .tar.gz#967311f84955316969bdb1d8d4b983718ef42338639c621ec4c34fddef355e99 " openssl --if needs_openssl:1.0.2-3.x.x
22install_git "ruby-master" "https://github.com/ruby/ruby.git" "master" autoconf enable_shared standard_install_with_bundled_gems
Original file line number Diff line number Diff line change 1- install_package "openssl-3.0.18 " "https://github.com/openssl/openssl/releases/download/openssl-3.0.18 /openssl-3.0.18 .tar.gz#d80c34f5cf902dccf1f1b5df5ebb86d0392e37049e5d73df1b3abae72e4ffe8b " openssl --if needs_openssl:1.0.2-3.x.x
1+ install_package "openssl-3.5.4 " "https://github.com/openssl/openssl/releases/download/openssl-3.5.4 /openssl-3.5.4 .tar.gz#967311f84955316969bdb1d8d4b983718ef42338639c621ec4c34fddef355e99 " openssl --if needs_openssl:1.0.2-3.x.x
22install_git "ruby-master" "https://github.com/ruby/ruby.git" "master" autoconf enable_shared standard_install_with_bundled_gems
You can’t perform that action at this time.
0 commit comments