Obfuscation

This commit is contained in:
kirillsaint 2023-07-07 20:58:37 +06:00
parent 9958b2d166
commit 21f76cb380
2 changed files with 6 additions and 2 deletions

View File

@ -24,6 +24,10 @@ jobs:
- name: Execute Gradle build - name: Execute Gradle build
run: ./gradlew setupDecompWorkspace clean build --refresh-dependencies run: ./gradlew setupDecompWorkspace clean build --refresh-dependencies
- name: Install and Build Final Jar - name: Obfuscating Jar
working-directory: ./autobuilder
run: java -jar obfuscator.jar --jarIn ../build/libs/client-1.8.9.jar --jarOut ./jars/Client.jar --scriptFile obfuscationScript.js --config config
- name: Building Jar with Libraries
working-directory: ./autobuilder working-directory: ./autobuilder
run: npm install && LOGIN=${{ secrets.LOGIN }} PASSWORD=${{ secrets.PASSWORD }} node index --version 1.8.9 --branch ${{ steps.branch-name.outputs.current_branch }} --commit ${{ steps.commit.outputs.short }} run: npm install && LOGIN=${{ secrets.LOGIN }} PASSWORD=${{ secrets.PASSWORD }} node index --version 1.8.9 --branch ${{ steps.branch-name.outputs.current_branch }} --commit ${{ steps.commit.outputs.short }}

View File

@ -45,7 +45,7 @@ async function build() {
`Silent Client AutoBuilder (MC Version: ${version}, branch: ${branch})` `Silent Client AutoBuilder (MC Version: ${version}, branch: ${branch})`
); );
console.log("Checking Jars"); console.log("Checking Jars");
if (!fs.existsSync(`../build/libs/client-${version}.jar`)) { if (!fs.existsSync(`./jars/Client.jar`)) {
console.error("JAR file does not exist."); console.error("JAR file does not exist.");
return; return;
} }