mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-04-08 17:31:53 +03:00
[FEATURE] Генерация готового bundle, со всей структурой каталогов нужной для работы лауннчсервера.
This commit is contained in:
parent
55080540b6
commit
82ee209c55
1 changed files with 12 additions and 9 deletions
|
@ -21,7 +21,7 @@
|
||||||
launch4j
|
launch4j
|
||||||
launch4jCJ
|
launch4jCJ
|
||||||
bundleOnly.extendsFrom bundle
|
bundleOnly.extendsFrom bundle
|
||||||
compile.extendsFrom bundle, hikari, pack, launch4jCJ
|
compile.extendsFrom bundle, hikari, pack, launch4jCJ, launch4j
|
||||||
}
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
|
@ -60,15 +60,15 @@ pack project(':libLauncher')
|
||||||
exclude group: 'org.slf4j'
|
exclude group: 'org.slf4j'
|
||||||
}
|
}
|
||||||
|
|
||||||
launch4j('net.sf.launch4j:launch4j:3.12') { // need user
|
launch4j('net.sf.launch4j:launch4j:3.12') {
|
||||||
exclude group: '*'
|
exclude group: '*'
|
||||||
}
|
}
|
||||||
|
|
||||||
launch4jCJ('net.sf.launch4j:launch4j:3.12:workdir-win32') { // need user
|
launch4jCJ('net.sf.launch4j:launch4j:3.12:workdir-win32') {
|
||||||
exclude group: '*'
|
exclude group: '*'
|
||||||
}
|
}
|
||||||
|
|
||||||
launch4jCJ('net.sf.launch4j:launch4j:3.12:workdir-linux') { // need user
|
launch4jCJ('net.sf.launch4j:launch4j:3.12:workdir-linux') {
|
||||||
exclude group: '*'
|
exclude group: '*'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -115,10 +115,13 @@ task dumpLibs(type: Copy) {
|
||||||
from configurations.bundleOnly
|
from configurations.bundleOnly
|
||||||
}
|
}
|
||||||
|
|
||||||
task dumpClientLibs(type: Copy) {
|
task bundle(type: Zip) {
|
||||||
dependsOn parent.childProjects.Launcher.tasks.build
|
dependsOn parent.childProjects.Launcher.tasks.build, tasks.dumpLibs, tasks.jar
|
||||||
into "$buildDir/libs/launcher-libraries"
|
archiveName 'bundle.zip'
|
||||||
from parent.childProjects.Launcher.tasks.dumpLibs.destinationDir
|
destinationDir file("$buildDir")
|
||||||
|
from(tasks.dumpLibs.destinationDir) { into 'libraries' }
|
||||||
|
from tasks.jar.archivePath
|
||||||
|
from(parent.childProjects.Launcher.tasks.dumpLibs) { into 'launcher-libraries' }
|
||||||
}
|
}
|
||||||
|
|
||||||
build.dependsOn tasks.dumpLibs, tasks.dumpClientLibs
|
build.dependsOn tasks.dumpLibs, tasks.bundle
|
||||||
|
|
Loading…
Reference in a new issue