Skip to content

Commit

Permalink
Merge pull request #35 from TSRBerry/master
Browse files Browse the repository at this point in the history
Upgrade to Ghidra 10.2
  • Loading branch information
Adubbz authored Nov 18, 2022
2 parents f889e66 + 3a05d2a commit 19ca180
Show file tree
Hide file tree
Showing 29 changed files with 450 additions and 379 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- directory: /
open-pull-requests-limit: 5
package-ecosystem: github-actions
schedule:
interval: weekly
18 changes: 18 additions & 0 deletions .github/workflows/dep-updates-am.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Dependency updates auto-merge
on: pull_request

permissions:
pull-requests: write
contents: write
checks: read

jobs:
auto_merge:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Enable auto-merge for dependency update PRs
run: gh pr merge --auto -s "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
15 changes: 7 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,21 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ghidra: ["10.1.5" ]
ghidra: ["10.2.2" ]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: "11"
java-package: jdk
architecture: x64
distribution: "temurin"
java-version: "17"
- uses: er28-0652/setup-ghidra@master
with:
version: ${{ matrix.ghidra }}
- uses: eskatos/gradle-command-action@v1
- uses: eskatos/gradle-command-action@v2
with:
gradle-version: current
arguments: -PGHIDRA_INSTALL_DIR=${{ env.GHIDRA_INSTALL_DIR }}
- uses: svenstaro/upload-release-action@v1-release
- uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/SwitchLoader-*.zip
Expand Down
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
## Ghidra Switch Loader
# Ghidra Switch Loader

A loader for Ghidra supporting a variety of Nintendo Switch file formats.

## Building
- Ensure you have ``JAVA_HOME`` set to the path of your JDK 11 installation.

- Ensure you have ``JAVA_HOME`` set to the path of your JDK 17 installation.
- Set ``GHIDRA_INSTALL_DIR`` to your Ghidra install directory. This can be done in one of the following ways:
- **Windows**: Running ``set GHIDRA_INSTALL_DIR=<Absolute path to Ghidra without quotations>``
- **macos/Linux**: Running ``export GHIDRA_INSTALL_DIR=<Absolute path to Ghidra>``
- Using ``-PGHIDRA_INSTALL_DIR=<Absolute path to Ghidra>`` when running ``./gradlew``
- Adding ``GHIDRA_INSTALL_DIR`` to your Windows environment variables.
- **Windows**: Running ``set GHIDRA_INSTALL_DIR=<Absolute path to Ghidra without quotations>``
- **macos/Linux**: Running ``export GHIDRA_INSTALL_DIR=<Absolute path to Ghidra>``
- Using ``-PGHIDRA_INSTALL_DIR=<Absolute path to Ghidra>`` when running ``./gradlew``
- Adding ``GHIDRA_INSTALL_DIR`` to your Windows environment variables.
- Run ``./gradlew``
- You'll find the output zip file inside `/dist`

## Installation

- Start Ghidra and use the "Install Extensions" dialog (``File -> Install Extensions...``).
- Press the ``+`` button in the upper right corner.
- Select the zip file in the file browser, then restart Ghidra.
- Select the zip file in the file browser, then restart Ghidra.
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 19ca180

Please sign in to comment.