|
24 | 24 | 'outputDirectory' => '${project.build.directory}' } ] )
|
25 | 25 | end
|
26 | 26 |
|
27 |
| - execute :pack200 do |ctx| |
28 |
| - jruby_home = Dir[ File.join( ctx.project.build.directory.to_pathname, |
29 |
| - 'META-INF/jruby.home/**/*.jar' ) ] |
30 |
| - gem_home = Dir[ File.join( ctx.project.build.directory.to_pathname, |
31 |
| - 'rubygems-provided/**/*.jar' ) ] |
32 |
| - lib_dir = Dir[ File.join( ctx.basedir.to_pathname, |
33 |
| - '../../lib/*.jar' ) ] |
34 |
| - |
35 |
| - (jruby_home + gem_home + lib_dir).each do |f| |
36 |
| - file = f.sub /.jar$/, '' |
37 |
| - unless File.exists?( file + '.pack.gz' ) |
38 |
| - puts "pack200 #{f.sub(/.*jruby.home./, '').sub(/.*rubygems-provided./, '')}" |
39 |
| - system('pack200', "#{file}.pack.gz", "#{file}.jar") |
40 |
| - end |
41 |
| - end |
| 27 | + execute :install4j do |ctx| |
| 28 | + script = File.join(ctx.basedir.to_s, 'create_windows_installer.sh') |
| 29 | + outputfile = File.join(ctx.project.build.directory.to_pathname, "#{ctx.project.build.finalName}-windows.exe") |
| 30 | + `#{script} #{outputfile}` |
42 | 31 | end
|
43 | 32 |
|
44 | 33 | execute :fix_executable_bits do |ctx|
|
|
58 | 47 | :tarLongFileMode => 'gnu' ) do
|
59 | 48 | execute_goals( :single, :id => 'bin.tar.gz and bin.zip',
|
60 | 49 | :descriptors => [ 'src/main/assembly/bin.xml' ] )
|
61 |
| - execute_goals( :single, :id => 'bin200.tar.gz', |
62 |
| - :attach => false, |
63 |
| - :descriptors => [ 'src/main/assembly/bin200.xml' ] ) |
| 50 | + end |
| 51 | + |
| 52 | + plugin 'org.codehaus.mojo:build-helper-maven-plugin' do |
| 53 | + execute_goal( 'attach-artifact', |
| 54 | + :id => 'attach-windows-artifacts', |
| 55 | + :artifacts => [ { :file => '${project.build.directory}/${project.build.finalName}-windows.exe', |
| 56 | + :type => 'exe', |
| 57 | + :classifier => 'windows' } ] ) |
| 58 | + |
64 | 59 | end
|
65 | 60 | end
|
66 | 61 |
|
|
91 | 86 | type: 'zip.sha256'},
|
92 | 87 | { file: '${project.build.directory}/jruby-dist-${project.version}-src.zip.sha512',
|
93 | 88 | classifier: :src,
|
94 |
| - type: 'zip.sha512'} ] ) |
| 89 | + type: 'zip.sha512'}, |
| 90 | + { file: '${project.build.directory}/jruby-dist-${project.version}-windows.exe.sha256', |
| 91 | + classifier: :windows, |
| 92 | + type: 'exe.sha256'}, |
| 93 | + { file: '${project.build.directory}/jruby-dist-${project.version}-windows.exe.sha512', |
| 94 | + classifier: :windows, |
| 95 | + type: 'exe.sha512'} ] ) |
95 | 96 | end
|
96 | 97 | end
|
97 | 98 |
|
|
123 | 124 | end
|
124 | 125 | plugin 'org.codehaus.mojo:build-helper-maven-plugin' do
|
125 | 126 | execute_goal( 'attach-artifact',
|
126 |
| - :id => 'attach-artifacts', |
| 127 | + :id => 'attach-src-artifacts', |
127 | 128 | :artifacts => [ { :file => '${project.build.directory}/${project.build.finalName}-src.zip',
|
128 | 129 | :type => 'zip',
|
129 | 130 | :classifier => 'src' } ] )
|
|
0 commit comments