Skip to content

Commit

Permalink
Added versioning for 0.1.0 stable
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrptdev2 committed Oct 10, 2024
1 parent a9bb0e1 commit d321716
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions ghidra_yara/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
*/
// Builds a Ghidra Extension for a given Ghidra installation.
//
// An absolute path to the Ghidra installation directory must be supplied either by setting the
// An absolute path to the Ghidra installation directory must be supplied either by setting the
// GHIDRA_INSTALL_DIR environment variable or Gradle project property:
//
// > export GHIDRA_INSTALL_DIR=<Absolute path to Ghidra>
// > export GHIDRA_INSTALL_DIR=<Absolute path to Ghidra>
// > gradle
//
// or
Expand Down Expand Up @@ -51,7 +51,7 @@ task distributeExtension {
//----------------------END "DO NOT MODIFY" SECTION-------------------------------

repositories {
// Declare dependency repositories here. This is not needed if dependencies are manually
// Declare dependency repositories here. This is not needed if dependencies are manually
// dropped into the lib/ directory.
// See https://docs.gradle.org/current/userguide/declaring_repositories.html for more info.
// Ex: mavenCentral()
Expand All @@ -63,7 +63,7 @@ repositories {
password = project.findProperty("gpr.token") ?: System.getenv("GITHUB_TOKEN")
}
}

flatDir {
dirs 'libs'
}
Expand All @@ -74,5 +74,15 @@ dependencies {
implementation fileTree(dir: 'libs', include: '*.jar')
}

// Exclude additional files from the built extension
// Ex: buildExtension.exclude '.idea/**'
version = '0.1.0'
ext {
extname = 'GhidraYara'
}

processResources {
filesMatching('extension.properties') {
expand(
extversion: version,
extname: ext.extname, )
}
}

0 comments on commit d321716

Please sign in to comment.