@@ -21,12 +21,17 @@ dependencies {
2121 compile group : ' com.github.jiconfont' , name : ' jiconfont-swing' , version : ' 1.0.0'
2222 compile group : ' com.github.jiconfont' , name : ' jiconfont-font_awesome' , version : ' 4.7.0.1'
2323 compile group : ' com.formdev' , name : ' flatlaf' , version : ' 0.35'
24- compile group : ' net.contentobjects.jnotify' , name : ' jnotify' , version : ' 0.94'
2524 compile group : ' net.java.balloontip' , name : ' balloontip' , version : ' 1.2.4.1'
2625 compile group : ' javax.help' , name : ' javahelp' , version : ' 2.0.05'
2726 compile group : ' org.jfree' , name : ' jfreechart' , version : ' 1.5.3'
2827 compile group : ' net.lingala.zip4j' , name : ' zip4j' , version : ' 2.9.0'
29- compile fileTree(dir : ' lib' , include : [' *' ])
28+ compile group : ' org.slf4j' , name : ' slf4j-api' , version : ' 1.7.31'
29+ compile group : ' io.methvin' , name : ' directory-watcher' , version : ' 0.15.0'
30+ // compile group: 'sh.tak.appbundler', name: 'appbundle-maven-plugin', version: '1.2.0'
31+
32+
33+
34+ // compile fileTree(dir: 'lib', include: ['*'])
3035 testImplementation ' org.junit.jupiter:junit-jupiter-api:5.3.1'
3136 testRuntimeOnly ' org.junit.jupiter:junit-jupiter-engine:5.3.1'
3237 // implementation 'org.junit.jupiter:junit-jupiter'
@@ -42,6 +47,9 @@ manifest {
4247launch4j {
4348 mainClassName = ' adda.Main'
4449 icon = " ${ projectDir} /help/en/adda_logo.ico"
50+ // bundledJrePath = "c:\\Program Files\\JetBrains\\IntelliJ IDEA 2019.3.4\\jbr"
51+ bundledJrePath = " jbr"
52+ bundledJre64Bit = true
4553}
4654
4755sourceSets {
@@ -61,3 +69,34 @@ test {
6169 useJUnitPlatform()
6270}
6371
72+ task packageExecutableDistribution (type : Zip ) {
73+ archiveFileName = " adda-gui_win64.zip"
74+ destinationDirectory = file(" $projectDir /releases" )
75+
76+ from " $buildDir /launch4j"
77+ }
78+
79+ task addJreToDistributable (type : Copy ) {
80+ from(' c:\\ Program Files\\ JetBrains\\ IntelliJ IDEA 2019.3.4\\ jbr' )
81+ destinationDir = file(" $buildDir /launch4j/jbr" )
82+ }
83+
84+ task addAddaBinToDistributable (type : Copy ) {
85+ from(' bin' ) {
86+ include ' **/*.*'
87+ }
88+ destinationDir = file(" $buildDir /launch4j/bin" )
89+ }
90+
91+ task addHelpToDistributable (type : Copy ) {
92+ from(' help' ) {
93+ include ' **/*.*'
94+ }
95+ destinationDir = file(" $buildDir /launch4j/help" )
96+ }
97+
98+ packageExecutableDistribution. dependsOn createExe
99+ packageExecutableDistribution. dependsOn addJreToDistributable
100+ packageExecutableDistribution. dependsOn addAddaBinToDistributable
101+ packageExecutableDistribution. dependsOn addHelpToDistributable
102+
0 commit comments