Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
keyescgm
jadx
提交
46b07863
J
jadx
项目概览
keyescgm
/
jadx
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
jadx
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
46b07863
编写于
11月 20, 2021
作者:
S
Skylot
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
build: fix bundle build
上级
445e91e6
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
19 addition
and
29 deletion
+19
-29
build.gradle
build.gradle
+16
-11
jadx-core/src/main/java/jadx/core/dex/visitors/SignatureProcessor.java
.../main/java/jadx/core/dex/visitors/SignatureProcessor.java
+1
-1
jadx-gui/build.gradle
jadx-gui/build.gradle
+2
-17
未找到文件。
build.gradle
浏览文件 @
46b07863
...
...
@@ -135,6 +135,16 @@ task copyExe(type: Copy) {
duplicatesStrategy
=
DuplicatesStrategy
.
EXCLUDE
}
task
distWinBundle
(
type:
Copy
,
dependsOn:
'jadx-gui:distWinWithJre'
)
{
group
'jadx'
description
=
'Copy bundle to build dir'
destinationDir
buildDir
from
(
tasks
.
getByPath
(
'jadx-gui:distWinWithJre'
).
outputs
)
{
include
'*.zip'
}
duplicatesStrategy
=
DuplicatesStrategy
.
EXCLUDE
}
task
dist
{
group
'jadx'
description
=
'Build jadx distribution zip'
...
...
@@ -143,18 +153,13 @@ task dist {
OperatingSystem
os
=
org
.
gradle
.
nativeplatform
.
platform
.
internal
.
DefaultNativePlatform
.
currentOperatingSystem
;
if
(
os
.
isWindows
())
{
dependsOn
(
'copyExe'
)
}
}
task
distWin
(
type:
Copy
,
dependsOn:
'jadx-gui:distWinWithJre'
)
{
group
'jadx'
description
=
'Copy bundle to build dir'
destinationDir
buildDir
from
(
tasks
.
getByPath
(
'jadx-gui:distWinWithJre'
).
outputs
)
{
include
'*.zip'
if
(
project
.
hasProperty
(
"bundleJRE"
))
{
println
(
"Build win bundle with JRE"
)
dependsOn
(
'distWinBundle'
)
}
else
{
dependsOn
(
'copyExe'
)
}
}
duplicatesStrategy
=
DuplicatesStrategy
.
EXCLUDE
}
task
cleanBuildDir
(
type:
Delete
)
{
...
...
jadx-core/src/main/java/jadx/core/dex/visitors/SignatureProcessor.java
浏览文件 @
46b07863
...
...
@@ -129,7 +129,7 @@ public class SignatureProcessor extends AbstractVisitor {
if
(
checkedArgTypes
==
null
)
{
return
false
;
}
mth
.
updateTypes
(
Utils
.
lock
List
(
checkedArgTypes
),
retType
);
mth
.
updateTypes
(
Collections
.
unmodifiable
List
(
checkedArgTypes
),
retType
);
return
true
;
}
catch
(
Exception
e
)
{
mth
.
addWarnComment
(
"Type validation failed for signature: "
+
sp
.
getSignature
(),
e
);
...
...
jadx-gui/build.gradle
浏览文件 @
46b07863
...
...
@@ -89,7 +89,7 @@ launch4j {
maxHeapSize
=
4096
maxHeapPercent
=
70
downloadUrl
=
'https://www.oracle.com/java/technologies/downloads/#jdk17-windows'
bundledJrePath
=
'%JAVA_HOME%'
bundledJrePath
=
project
.
hasProperty
(
"bundleJRE"
)
?
'%EXEDIR%/jre'
:
'%JAVA_HOME%'
}
runtime
{
...
...
@@ -110,19 +110,7 @@ runtime {
}
}
tasks
.
register
(
'distLaunch4jConfig'
)
{
def
configFile
=
layout
.
buildDirectory
.
file
(
"jadx-gui-${version}.l4j.ini"
)
outputs
.
file
(
configFile
).
withPropertyName
(
'outputFiles'
)
doLast
{
configFile
.
get
().
getAsFile
().
write
(
"""
# Launch4j runtime config
-DJAVA_HOME="%EXEDIR%/jre"
"""
.
trim
())
}
}
task
distWinWithJre
(
type:
Zip
,
dependsOn:
[
'runtime'
,
'createExe'
,
'distLaunch4jConfig'
])
{
task
distWinWithJre
(
type:
Zip
,
dependsOn:
[
'runtime'
,
'createExe'
])
{
group
'jadx'
destinationDirectory
=
buildDir
archiveFileName
=
"jadx-gui-${jadxVersion}-with-jre-win.zip"
...
...
@@ -133,8 +121,5 @@ task distWinWithJre(type: Zip, dependsOn: ['runtime', 'createExe', 'distLaunch4j
from
(
createExe
.
outputs
)
{
include
'*.exe'
}
from
(
distLaunch4jConfig
.
outputs
)
{
include
'*.ini'
}
duplicatesStrategy
=
DuplicatesStrategy
.
EXCLUDE
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录