Switch to FHS-style layout

Signed-off-by: Graham <gpe@openrs2.dev>
bzip2
Graham 5 years ago
parent 24c8c43221
commit e6a92ea0aa
  1. 14
      README.md
  2. 6
      all/build.gradle.kts
  3. 2
      bundler/src/main/java/dev/openrs2/bundler/BundleCommand.kt
  4. 4
      crypto/src/main/java/dev/openrs2/crypto/RsaKeyProvider.kt
  5. 2
      decompiler/src/main/java/dev/openrs2/decompiler/DecompileCommand.kt
  6. 2
      deob/src/main/java/dev/openrs2/deob/DeobfuscateCommand.kt
  7. 0
      etc/.gitignore
  8. 0
      share/.gitignore
  9. 0
      share/doc/client-parameters.md
  10. 0
      share/doc/faq.md

@ -25,7 +25,7 @@ beneath the root of the repository), in the following structure:
```
nonfree
└── code
└── lib
   ├── jaggl.pack200
   ├── loader_gl.jar
   ├── loader.jar
@ -37,12 +37,12 @@ nonfree
The SHA-256 checksums of the correct files are:
```
d39578f4a88a376bcb2571f05da1939a14a80d8c4ed89a4eb172d9e525795fe2 nonfree/code/jaggl.pack200
31182683ba04dc0ad45859161c13f66424b10deb0b2df10aa58b48bba57402db nonfree/code/loader_gl.jar
ccdfaa86be07452ddd69f869ade86ea900dbb916fd853db16602edf2eb54211b nonfree/code/loader.jar
4a5032ea8079d2154617ae1f21dfcc46a10e023c8ba23a4827d5e25e75c73045 nonfree/code/runescape_gl.pack200
0ab28a95e7c5993860ff439ebb331c0df02ad40aa1f544777ed91b46d30d3d24 nonfree/code/runescape.jar
7c090e07f8d754d09804ff6e9733ef3ba227893b6b639436db90977b39122590 nonfree/code/unpackclass.pack
d39578f4a88a376bcb2571f05da1939a14a80d8c4ed89a4eb172d9e525795fe2 nonfree/lib/jaggl.pack200
31182683ba04dc0ad45859161c13f66424b10deb0b2df10aa58b48bba57402db nonfree/lib/loader_gl.jar
ccdfaa86be07452ddd69f869ade86ea900dbb916fd853db16602edf2eb54211b nonfree/lib/loader.jar
4a5032ea8079d2154617ae1f21dfcc46a10e023c8ba23a4827d5e25e75c73045 nonfree/lib/runescape_gl.pack200
0ab28a95e7c5993860ff439ebb331c0df02ad40aa1f544777ed91b46d30d3d24 nonfree/lib/runescape.jar
7c090e07f8d754d09804ff6e9733ef3ba227893b6b639436db90977b39122590 nonfree/lib/unpackclass.pack
```
The `nonfree` directory is included in the `.gitignore` file to prevent any

@ -50,13 +50,13 @@ distributions {
from("${rootProject.projectDir}/DCO")
from("${rootProject.projectDir}/LICENSE")
from("${rootProject.projectDir}/README.md")
from("${rootProject.projectDir}/docs") {
from("${rootProject.projectDir}/share/doc") {
include("*.md")
into("docs")
into("share/doc")
}
from("$buildDir/reports/dependency-license/THIRD-PARTY-NOTICES.txt") {
rename { "third-party-licenses.txt" }
into("docs")
into("share/doc")
}
}
}

@ -10,6 +10,6 @@ class BundleCommand : CliktCommand(name = "bundle") {
override fun run() {
val injector = Guice.createInjector(BundlerModule())
val bundler = injector.getInstance(Bundler::class.java)
bundler.run(Paths.get("nonfree/code"), Paths.get("nonfree/code/bundle"), Paths.get("conf/loader.p12"))
bundler.run(Paths.get("nonfree/lib"), Paths.get("nonfree/var/cache/bundle"), Paths.get("etc/loader.p12"))
}
}

@ -18,7 +18,7 @@ class RsaKeyProvider : Provider<RSAPrivateCrtKeyParameters> {
}
companion object {
private val PUBLIC_PATH = Paths.get("conf/public.key")
private val PRIVATE_PATH = Paths.get("conf/private.key")
private val PUBLIC_PATH = Paths.get("etc/public.key")
private val PRIVATE_PATH = Paths.get("etc/private.key")
}
}

@ -8,7 +8,7 @@ fun main(args: Array<String>) = DecompileCommand().main(args)
class DecompileCommand : CliktCommand(name = "decompile") {
override fun run() {
val deobOutput = Paths.get("nonfree/code/deob")
val deobOutput = Paths.get("nonfree/var/cache/deob")
val sources = listOf(
deobOutput.resolve("runescape_gl.jar"),
deobOutput.resolve("jaggl.jar"),

@ -7,7 +7,7 @@ fun main(args: Array<String>) = DeobfuscateCommand().main(args)
class DeobfuscateCommand : CliktCommand(name = "deob") {
override fun run() {
val deobfuscator = Deobfuscator(Paths.get("nonfree/code"), Paths.get("nonfree/code/deob"))
val deobfuscator = Deobfuscator(Paths.get("nonfree/lib"), Paths.get("nonfree/var/cache/deob"))
deobfuscator.run()
}
}

Loading…
Cancel
Save