Skip to content

Commit

Permalink
Add scenicview.jar to zip
Browse files Browse the repository at this point in the history
  • Loading branch information
jperedadnr committed Dec 16, 2018
1 parent 26b615e commit fc849fd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions build.gradle
Expand Up @@ -51,19 +51,18 @@ artifacts {
ext.platform = osdetector.os == 'osx' ? 'mac' : osdetector.os == 'windows' ? 'win' : osdetector.os ext.platform = osdetector.os == 'osx' ? 'mac' : osdetector.os == 'windows' ? 'win' : osdetector.os


jlink { jlink {
imageDir.set(project.layout.buildDirectory.dir('scenicview'))
imageZip.set(project.layout.buildDirectory.file('scenicview.zip'))
options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages'] options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
launcher { launcher {
name = 'scenicView' name = 'scenicView'
} }
imageZip = project.file("${buildDir}/dist/scenicView-${platform}.zip") imageDir = file("${buildDir}/scenicview")
imageZip = file("${buildDir}/dist/scenicview-${platform}.zip")
} }


tasks.jlink.doLast { tasks.jlink.doLast {
// Copy scenicView.jar to lib, it is required as loading Agent // Copy scenicView.jar to lib, it is required as loading Agent
copy { copy {
from "${buildDir}/libs/scenicview.jar" from "${buildDir}/libs/scenicview.jar"
into "${buildDir}/image/lib" into "${buildDir}/scenicview/lib"
} }
} }

0 comments on commit fc849fd

Please sign in to comment.