From 68cb755212cb24df9211d84e44e4a5a5ae86000f Mon Sep 17 00:00:00 2001 From: Gravit Date: Sun, 20 Oct 2019 23:10:41 +0700 Subject: [PATCH] =?UTF-8?q?[FIX]=20=D0=91=D0=BE=D0=BB=D0=B5=D0=B5=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=BD=D1=8F=D1=82=D0=BD=D1=8B=D0=B5=20=D0=B8=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pro/gravit/launchserver/binary/tasks/SignJarTask.java | 2 +- .../pro/gravit/launchserver/config/LaunchServerConfig.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/binary/tasks/SignJarTask.java b/LaunchServer/src/main/java/pro/gravit/launchserver/binary/tasks/SignJarTask.java index 25cc1d5d..9dd608c8 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/binary/tasks/SignJarTask.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/binary/tasks/SignJarTask.java @@ -43,7 +43,7 @@ public Path process(Path inputFile) throws IOException { Path toRet = srv.launcherBinary.nextPath("signed"); KeyStore c = SignHelper.getStore(new File(config.keyStore).toPath(), config.keyStorePass, config.keyStoreType); try (SignerJar output = new SignerJar(new ZipOutputStream(IOHelper.newOutput(toRet)), () -> this.gen(c), - config.manifestFileSfName, config.manifestFileName); + config.metaInfSfName, config.metaInfKeyName); ZipInputStream input = new ZipInputStream(IOHelper.newInput(inputFile))) { //input.getManifest().getMainAttributes().forEach((a, b) -> output.addManifestAttribute(a.toString(), b.toString())); // may not work such as after Radon. ZipEntry e = input.getNextEntry(); diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/config/LaunchServerConfig.java b/LaunchServer/src/main/java/pro/gravit/launchserver/config/LaunchServerConfig.java index a4f29d46..5f42a71b 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/config/LaunchServerConfig.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/config/LaunchServerConfig.java @@ -233,8 +233,8 @@ public static class JarSignerConf { public String keyStorePass = "mypass"; public String keyAlias = "myname"; public String keyPass = "mypass"; - public String manifestFileName = "SIGNUMO.RSA"; - public String manifestFileSfName = "SIGNUMO.SF"; + public String metaInfKeyName = "SIGNUMO.RSA"; + public String metaInfSfName = "SIGNUMO.SF"; public String signAlgo = "SHA256WITHRSA"; }