Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit 5a1ba4b

Browse files
committed
feat: Initial deob
0 parents  commit 5a1ba4b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+31962
-0
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
7+
[*.java]
8+
charset = utf-8
9+
indent_style = tab

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/gradlew text eol=lf
2+
*.bat text eol=crlf

.github/workflows/build.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- uses: actions/setup-java@v4
13+
with:
14+
distribution: 'temurin'
15+
java-version: 8
16+
17+
- uses: gradle/actions/setup-gradle@v4
18+
19+
- name: Build
20+
run: gradle build
21+
22+
- name: Obfuscate
23+
run: gradle proguard
24+
25+
- name: Upload
26+
uses: actions/upload-artifact@v4
27+
with:
28+
name: client
29+
path: |
30+
build/libs/*
31+
32+
deob-map:
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v4
36+
37+
- uses: actions/setup-java@v4
38+
with:
39+
distribution: 'temurin'
40+
java-version: 21
41+
42+
- name: Generate deob mapping
43+
run: |
44+
cp ref/remap.toml deob.toml
45+
wget https://github.com/LostCityRS/Deobfuscator/releases/latest/download/Deobfuscator.jar
46+
java -jar Deobfuscator.jar
47+
48+
- name: Upload mapping
49+
uses: actions/upload-artifact@v4
50+
with:
51+
name: deob-map
52+
path: |
53+
remap.txt

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/.gradle/
2+
/.idea/
3+
4+
build/
5+
*.class
6+
7+
hs_err_pid*.log
8+
.DS_Store

build.gradle

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
buildscript {
2+
repositories {
3+
mavenCentral()
4+
}
5+
dependencies {
6+
classpath 'com.guardsquare:proguard-gradle:7.6.0'
7+
}
8+
}
9+
10+
plugins {
11+
id 'java'
12+
id 'application'
13+
}
14+
15+
java {
16+
toolchain {
17+
languageVersion.set(JavaLanguageVersion.of(8))
18+
}
19+
20+
sourceCompatibility = JavaVersion.VERSION_1_6
21+
targetCompatibility = JavaVersion.VERSION_1_6
22+
}
23+
24+
application {
25+
mainClass = "deob.client"
26+
}
27+
28+
jar {
29+
manifest {
30+
attributes(
31+
'Main-Class': 'deob.client'
32+
)
33+
}
34+
35+
from {
36+
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
37+
}
38+
39+
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
40+
}
41+
42+
tasks.withType(JavaCompile) {
43+
options.encoding = 'UTF-8'
44+
}
45+
46+
tasks.register('proguard', proguard.gradle.ProGuardTask) {
47+
configuration file('proguard.pro')
48+
49+
injars(tasks.named('jar', Jar).flatMap { it.archiveFile })
50+
51+
outjars(layout.buildDirectory.file("libs/${project.name}.rel.jar"))
52+
}

gradle/wrapper/gradle-wrapper.jar

42.6 KB
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

gradlew

Lines changed: 252 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)