Skip to content

Commit

Permalink
Update Windows build to include javafx
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudometov committed Sep 7, 2023
1 parent 5d57b21 commit 1ea6df9
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions installers/windows/zip/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*/
configurations {
javafx
}

dependencies {
javafx project(path: ':javafx', configuration: 'archives')
compile project(path: ':openjdksrc', configuration: 'archives')
}

Expand All @@ -29,6 +33,17 @@ task copySource(type: Copy) {
into buildRoot
}

task createJavafxOverlay(type: Copy) {
dependsOn project.configurations.javafx
from tarTree(project.configurations.javafx.singleFile)
into "$buildDir/javafx"
eachFile {
if (it.path.startsWith('rt/')) {
it.path = it.path.replace('rt/', 'jre/')
}
}
}

task configureBuild(type: Exec) {
dependsOn copySource
workingDir "$buildRoot"
Expand Down Expand Up @@ -70,6 +85,7 @@ task copyCacerts(type: Copy) {

task copyImage() {
dependsOn copyCacerts
dependsOn createJavafxOverlay

doLast {
// Copy image
Expand All @@ -91,6 +107,11 @@ task copyImage() {
include "version.txt"
into "$buildRoot/build/j2re-image"
}

exec {
workingDir createJavafxOverlay.destinationDir
commandLine 'cp', '-Rf', '--parents', 'bin', 'jre', 'lib', 'man/man1', 'javafx-src.zip', "$buildRoot/build/j2re-image"
}
}
}

Expand Down

0 comments on commit 1ea6df9

Please sign in to comment.