[FIX] Более понятные имена

This commit is contained in:
Gravit 2019-10-20 23:10:41 +07:00
parent e1c6775e34
commit 68cb755212
No known key found for this signature in database
GPG key ID: 061981E1E85D3216
2 changed files with 3 additions and 3 deletions

View file

@ -43,7 +43,7 @@ public Path process(Path inputFile) throws IOException {
Path toRet = srv.launcherBinary.nextPath("signed"); Path toRet = srv.launcherBinary.nextPath("signed");
KeyStore c = SignHelper.getStore(new File(config.keyStore).toPath(), config.keyStorePass, config.keyStoreType); 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), 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))) { 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. //input.getManifest().getMainAttributes().forEach((a, b) -> output.addManifestAttribute(a.toString(), b.toString())); // may not work such as after Radon.
ZipEntry e = input.getNextEntry(); ZipEntry e = input.getNextEntry();

View file

@ -233,8 +233,8 @@ public static class JarSignerConf {
public String keyStorePass = "mypass"; public String keyStorePass = "mypass";
public String keyAlias = "myname"; public String keyAlias = "myname";
public String keyPass = "mypass"; public String keyPass = "mypass";
public String manifestFileName = "SIGNUMO.RSA"; public String metaInfKeyName = "SIGNUMO.RSA";
public String manifestFileSfName = "SIGNUMO.SF"; public String metaInfSfName = "SIGNUMO.SF";
public String signAlgo = "SHA256WITHRSA"; public String signAlgo = "SHA256WITHRSA";
} }