Skip to content

Commit ef7583f

Browse files
authored
Merge pull request #178 from jace0x21/jc/add-gradle-install
Add install task in build.gradle
2 parents b7ae94a + f97ec75 commit ef7583f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

build.gradle

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,20 @@ task distributeExtension {
5050
}
5151
//----------------------END "DO NOT MODIFY" SECTION-------------------------------
5252

53+
task install(type: Exec) {
54+
dependsOn buildExtension
55+
56+
group = "Installation"
57+
description = "Installs the zip package in installed Ghidra's default extension directory"
58+
59+
workingDir ghidraInstallDir + '/Ghidra/Extensions'
60+
commandLine 'unzip', '-o', "${buildExtension.destinationDirectory.getAsFile().get().getAbsolutePath()}/${buildExtension.archiveBaseName.get()}.${buildExtension.archiveExtension.get()}"
61+
62+
doLast {
63+
logger.quiet("Installed ReVa")
64+
}
65+
}
66+
5367
sourceSets {
5468
integrationTest {
5569
java {

0 commit comments

Comments
 (0)