mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-01-09 09:09:46 +03:00
[FIX] Последние варны о несовместимости с Gradle 7.0/
This commit is contained in:
parent
3da2951cac
commit
0f9fd46d29
5 changed files with 16 additions and 3 deletions
|
@ -32,6 +32,7 @@
|
||||||
dependsOn parent.childProjects.Launcher.tasks.build
|
dependsOn parent.childProjects.Launcher.tasks.build
|
||||||
from { configurations.pack.collect { it.isDirectory() ? it : zipTree(it) } }
|
from { configurations.pack.collect { it.isDirectory() ? it : zipTree(it) } }
|
||||||
from(parent.childProjects.Launcher.tasks.shadowJar.archivePath)
|
from(parent.childProjects.Launcher.tasks.shadowJar.archivePath)
|
||||||
|
from(parent.childProjects.Launcher.tasks.genRuntimeJS.archivePath)
|
||||||
manifest.attributes("Main-Class": mainClassName,
|
manifest.attributes("Main-Class": mainClassName,
|
||||||
"Premain-Class": mainAgentName,
|
"Premain-Class": mainAgentName,
|
||||||
"Can-Redefine-Classes": "true",
|
"Can-Redefine-Classes": "true",
|
||||||
|
|
|
@ -45,8 +45,8 @@ public boolean allowDelete() {
|
||||||
|
|
||||||
public void tryUnpack() throws IOException {
|
public void tryUnpack() throws IOException {
|
||||||
LogHelper.info("Unpacking launcher native guard list and runtime");
|
LogHelper.info("Unpacking launcher native guard list and runtime");
|
||||||
UnpackHelper.unpackZipNoCheck("guard.zip", server.launcherBinary.guardDir);
|
|
||||||
UnpackHelper.unpackZipNoCheck("runtime.zip", server.launcherBinary.runtimeDir);
|
UnpackHelper.unpackZipNoCheck("runtime.zip", server.launcherBinary.runtimeDir);
|
||||||
|
IOHelper.keepDir(server.launcherBinary.guardDir);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final class ListFileVisitor extends SimpleFileVisitor<Path> {
|
private static final class ListFileVisitor extends SimpleFileVisitor<Path> {
|
||||||
|
|
|
@ -62,8 +62,13 @@ task dumpLibs(type: Copy) {
|
||||||
from configurations.bundle
|
from configurations.bundle
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task genRuntimeJS(type: Zip) {
|
||||||
|
archiveFileName = "runtime.zip"
|
||||||
|
destinationDirectory = file("${buildDir}/tmp")
|
||||||
|
from "runtime/"
|
||||||
|
}
|
||||||
|
|
||||||
assemble.dependsOn tasks.dumpLibs, tasks.shadowJar
|
assemble.dependsOn tasks.genRuntimeJS, tasks.dumpLibs, tasks.shadowJar
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
|
|
|
@ -733,4 +733,11 @@ public static void write(Path file, byte[] bytes) throws IOException {
|
||||||
|
|
||||||
private IOHelper() {
|
private IOHelper() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void keepDir(Path dir) throws IOException {
|
||||||
|
if (Files.isDirectory(dir))
|
||||||
|
return;
|
||||||
|
Files.deleteIfExists(dir);
|
||||||
|
Files.createDirectory(dir);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
2
modules
2
modules
|
@ -1 +1 @@
|
||||||
Subproject commit d430430a83080312a420ee6b91d335b23d75c693
|
Subproject commit 6df9e7b0fb74623336baaf8a1c53c2073dce4ffd
|
Loading…
Reference in a new issue