Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
[功能] 字节码加密功能支持 MAC 系统
Browse files Browse the repository at this point in the history
  • Loading branch information
4ra1n committed Aug 1, 2024
1 parent 0c923cf commit af92d78
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@

## 0.1.2

字节码加密功能支持了 `MAC` 系统(由 `pcdlrzxx` 提供)

解决了目标代码写法存在 `class.getResource("/dir/")` 时得到 `null` 的问题,这是最终打包 `JAR` 部分的代码问题

更新日志:

- [功能] 字节码加密功能支持 `MAC` 系统
- [功能] 字符串替换时处理反射字符串类名
- [功能] 添加对泛型 `signature` 的处理
- [优化] 优化 `builtin` 黑名单解析和注释
Expand All @@ -16,6 +19,7 @@
感谢以下用户的贡献:

- 4ra1n (https://github.com/4ra1n)
- pcdlrzxx (https://github.com/pcdlrzxx)

可供下载的文件由 `Github Actions` 构建,使用 `java -jar` 启动

Expand Down
13 changes: 8 additions & 5 deletions src/main/java/me/n1ar4/jar/obfuscator/core/Runner.java
Original file line number Diff line number Diff line change
Expand Up @@ -377,11 +377,14 @@ public static void run(Path path, BaseConfig config) {
}

if (config.isEnableSuperObfuscate()) {
// // 不支持 MAC 系统
// if (OSUtil.isMac()) {
// logger.error("mac os not support super obfuscate");
// return;
// }
if (!OSUtil.isArch64()) {
System.out.println("目前仅支持 64 位的操作系统");
return;
}

if (OSUtil.isMac()) {
logger.warn("目前对 MAC 的支持不稳定 请谨慎使用");
}

// 检查 JAVA 8 环境
if (!VerUtil.isJava8()) {
Expand Down

0 comments on commit af92d78

Please sign in to comment.