Skip to content

Commit

Permalink
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 5 additions & 0 deletions rakelib/helpers.rb
Original file line number Diff line number Diff line change
@@ -59,10 +59,15 @@ def sha256_checksum(filename)
HashTask.hash_for(filename, Digest::SHA256)
end

def sha512_checksum(filename)
HashTask.hash_for(filename, Digest::SHA512)
end

def checksums(filename)
md5_checksum filename
sha1_checksum filename
sha256_checksum filename
sha512_checksum filename
end

def permute_tests(base_name, options, *prereqs, &block)
8 changes: 3 additions & 5 deletions rakelib/release.rake
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

DIST_FILES_GLOB = "jruby-dist-*.{zip,gz}"
DIST_FILES_GLOB = "jruby-dist-*.{zip,gz,md5,sha1,sha256,sha512}"
DIST_FILES_DIR = File.join('maven', 'jruby-dist', 'target')
JRUBY_COMPLETE_DIR = File.join('maven', 'jruby-complete', 'target')
JRUBY_COMPLETE_GLOB = 'jruby-complete-*.jar'
JRUBY_COMPLETE_GLOB = 'jruby-complete-*.{jar,md5,sha1,sha256,sha512}'
JRUBY_JARS_DIR = File.join('maven', 'jruby-jars', 'pkg')
JRUBY_JARS_GLOB = 'jruby-jars-*.gem'
JRUBY_JARS_GLOB = 'jruby-jars-*.{gem,md5,sha1,sha256,sha512}'
JRUBY_EXE_GLOB = '*.exe'

desc "post-process mvn build to generate properly named and fingerprinted files"
@@ -22,10 +22,8 @@ task :post_process_artifacts => :windows_installer do
end

cp Dir[File.join(JRUBY_COMPLETE_DIR, JRUBY_COMPLETE_GLOB)], RELEASE_DIR
Dir[File.join(RELEASE_DIR, JRUBY_COMPLETE_GLOB)].each {|file| checksums file }

cp Dir[File.join(JRUBY_JARS_DIR, JRUBY_JARS_GLOB)], RELEASE_DIR
Dir[File.join(RELEASE_DIR, JRUBY_JARS_GLOB)].each {|file| checksums file }

Dir[File.join(RELEASE_DIR, JRUBY_EXE_GLOB)].each {|file| checksums file }
end

0 comments on commit a7b4227

Please sign in to comment.