changed patch directory

and updated distribution.gradle to copy patch/README.txt
This commit is contained in:
ghidravore 2019-04-03 17:04:56 -04:00
parent 5de10ed2a9
commit 9857ade2fe
2 changed files with 9 additions and 8 deletions

View file

@ -88,13 +88,7 @@ public class GhidraLauncher {
private static void addPatchPaths(List<String> pathList, Collection<ResourceFile> appRootDirs) {
for (ResourceFile rootDir : appRootDirs) {
ResourceFile dir = new ResourceFile(rootDir, "bin");
if (dir.exists()) {
pathList.add(dir.getAbsolutePath());
}
ResourceFile debugLibDir = new ResourceFile(rootDir, "lib");
ResourceFile debugLibDir = new ResourceFile(rootDir, "patch");
if (debugLibDir.exists()) {
pathList.addAll(findJarsInDir(debugLibDir));
}

View file

@ -394,7 +394,14 @@ task assembleCommon (type: Copy) {
into "Ghidra"
filter (ConcatFilter, prepend: buildDateFile)
}
////////////////
// Patch Readme
////////////////
from (ROOT_PROJECT_DIR + "/Ghidra/patch") {
into "Ghidra/patch"
}
/////////////////
// GLOBALS
/////////////////