Reduce Manifest duplication

master
Graham 5 years ago
parent 11ef4b0227
commit 40702d9c35
  1. 5
      bundler/src/main/java/dev/openrs2/bundler/Bundler.kt

@ -136,7 +136,7 @@ class Bundler @Inject constructor(publicKeyTransformer: PublicKeyTransformer) {
)
private val unsignedManifest = Manifest()
private val signedManifest = Manifest()
private val signedManifest: Manifest
private val APPLICATION_NAME = Attributes.Name("Application-Name")
private val PERMISSIONS = Attributes.Name("Permissions")
@ -145,8 +145,7 @@ class Bundler @Inject constructor(publicKeyTransformer: PublicKeyTransformer) {
unsignedManifest.mainAttributes[APPLICATION_NAME] = "OpenRS2"
unsignedManifest.mainAttributes[PERMISSIONS] = "sandbox"
signedManifest.mainAttributes[MANIFEST_VERSION] = "1.0"
signedManifest.mainAttributes[APPLICATION_NAME] = "OpenRS2"
signedManifest = Manifest(unsignedManifest)
signedManifest.mainAttributes[PERMISSIONS] = "all-permissions"
}
}

Loading…
Cancel
Save