mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
GP-0: Skeleton's build.grade was interfering with building natives in a
release
This commit is contained in:
parent
49592e40c9
commit
27c162ee8f
3 changed files with 11 additions and 3 deletions
|
@ -268,7 +268,11 @@ public class VSCodeProjectScript extends GhidraScript {
|
|||
}
|
||||
|
||||
// Fix Ghidra installation directory path in build.gradle
|
||||
File buildTemplateGradleFile = new File(projectDir, "buildTemplate.gradle");
|
||||
File buildGradleFile = new File(projectDir, "build.gradle");
|
||||
if (!buildTemplateGradleFile.renameTo(buildGradleFile)) {
|
||||
throw new IOException("Failed to rename: " + buildTemplateGradleFile);
|
||||
}
|
||||
String fileData = FileUtils.readFileToString(buildGradleFile, StandardCharsets.UTF_8);
|
||||
fileData =
|
||||
fileData.replaceAll("<REPLACE>", FilenameUtils.separatorsToUnix(installDir.getPath()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue