Skip to content

Commit 850fb48

Browse files
committed
update github action
1 parent b1e040e commit 850fb48

2 files changed

Lines changed: 45 additions & 15 deletions

File tree

.github/workflows/build-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
uses: gradle/actions/setup-gradle@v5
2929

3030
- name: Build
31+
env:
32+
VERSION: ${{ github.event.inputs.tag }}
3133
run: ./gradlew build dist
3234

3335
- name: Upload artifact

README.md

Lines changed: 43 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,43 @@
1-
"创建函数的控制流图(CFG),以图片格式显示。仅在 Ubuntu 上测试过。" +
2-
"\n\n使用方法:使用 Jadx-GUI 打开一个反编译后的 Java 代码界面,鼠标放在一个函数名上右键 -> 查看控制流图。" +
3-
"\n\n选项:生成控制流图的类型:普通,RAW(包含原始 Instructions), REGION(显示 Region 的划分)。" +
4-
"在 Jadx 的首选项中可以更改默认值。" +
5-
"\n\n需要安装:graphviz(用到了 'dot' 命令将 dot 格式转为 png)。" +
6-
"\n\n原理:使用 Jadx 的 DotGraphVisitor.dump() / dumpRaw() / dumpRegion() 创建 .dot 文件," +
7-
"然后使用 'dot -Tpng' 命令将其转为 png 图片并显示。"
8-
9-
"Generate method's CFG and display it as image. Tested on ubuntu." +
10-
"\n\nUsage: Open a decompiled Java code tab and right click on a method's name -> view CFG." +
11-
"\n\nOptions: Dump CFG as GENERAL, RAW (raw instructions) or REGION (region rectangles). " +
12-
"You can change the default dump type in the Jadx preferences dialog." +
13-
"\n\nPrerequisite: graphviz installed. (command 'dot' is used to convert .dot format to png)" +
14-
"\n\nHow it works: Create .dot file using Jadx's DotGraphVisitor.dump()/dumpRaw()/dumpRegion(). " +
15-
"Then convert it to png using 'dot -Tpng' command."
1+
## 简介
2+
创建函数的控制流图(CFG),以图片格式显示。
3+
4+
## 使用方法
5+
使用 Jadx-GUI 打开一个反编译后的 Java 代码界面,鼠标放在一个函数名上右键 -> 查看控制流图。
6+
7+
## 可用选项
8+
生成控制流图的类型:普通,RAW(包含原始 Instructions), REGION(显示 Region 的划分)。 \
9+
在 Jadx 的首选项中可以更改默认值。
10+
11+
## 运行依赖
12+
需要安装 graphviz(用到 'dot' 命令)。
13+
14+
在 Linux, Jadx 1.5.3 上测试可以正常运行。
15+
16+
## 原理:
17+
使用 Jadx 的 DotGraphVisitor.dump() / dumpRaw() / dumpRegion() 创建 .dot 文件,然后使用 'dot -Tpng' 命令将其转为 png 图片并显示。
18+
19+
20+
----
21+
22+
## Introduction
23+
Creates a Control Flow Graph (CFG) for a Java method and displays it as an image.
24+
25+
## Usage
26+
Open a decompiled Java code interface with Jadx-GUI, right-click on a method's name -> "View method CFG".
27+
28+
## Available Options
29+
Dump CFG as GENERAL, RAW (raw instructions) or REGION (region divisions). The default value can be changed in Jadx's preferences.
30+
31+
## Runtime dependencies
32+
Requires the installation of graphviz ('dot' command is used).
33+
34+
Tested on Linux, Jadx 1.5.3.
35+
36+
## How it Works
37+
It uses Jadx's DotGraphVisitor.dump() / dumpRaw() / dumpRegion() to create a .dot file, and then uses the 'dot -Tpng' command to convert it to a PNG image for display.
38+
39+
40+
41+
1. 测试构建的 jar 是否可以正常安装
42+
2. readme
43+
3. tag

0 commit comments

Comments
 (0)