Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,14 @@ jobs:
- name: Build with Gradle
run: ./gradlew build --no-daemon

- name: Prepare release files
run: |
mkdir -p release
cp build/libs/AirClient-*.jar release/airclient.jar
cp -r zip_include/. release/

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: AirClient
path: build/libs/*.jar
path: release/
54 changes: 0 additions & 54 deletions .github/workflows/release.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

A free open-source mixin-based injection hacked client for Minecraft using Minecraft Forge.

**Version:** b1.2 | **Minecraft:** 1.8.9
**Version:** b1.3 | **Minecraft:** 1.8.9

[GitHub](https://github.com/lmx0721/AirClient) | [Bilibili](https://space.bilibili.com/3706927473232492) | QQ Group: 722573066

Expand Down
41 changes: 38 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,21 @@ mcversion=${project.minecraft.version}
}

task moveResources {
dependsOn compileJava

doLast {
copy {
from "${buildDir}/resources/main"
into "${buildDir}/classes/java"
}

def refmap = file("${buildDir}/tmp/compileJava/liquidbounce.mixins.refmap.json")
if (refmap.exists()) {
copy {
from refmap
into "${buildDir}/classes/java"
}
}
}
}

Expand All @@ -183,7 +193,7 @@ jar {
"FMLCorePlugin": "net.ccbluex.liquidbounce.injection.forge.MixinLoader",
"FMLCorePluginContainsFMLMod": true,
"ForceLoadAsMod": true,
"MixinConfigs": "liquidbounce.forge.mixins.json,mixins.phosphor.json",
"MixinConfigs": "liquidbounce.forge.mixins.json",
"ModSide": "CLIENT",
"TweakClass": "org.spongepowered.asm.launch.MixinTweaker",
"TweakOrder": "0",
Expand All @@ -209,7 +219,32 @@ reobfJar.enabled = false

shadowJar.finalizedBy(reobfShadowJar)

build.dependsOn(reobfShadowJar)
task packageReleaseZip(type: Zip) {
group = "build"
description = "Packages zip_include files and the built mod jar into a release zip."

dependsOn reobfShadowJar

archiveBaseName.set("${project.archives_base_name}")
archiveExtension.set("zip")
destinationDirectory.set(file("${buildDir}/libs"))

doFirst {
file("${buildDir}/libs").listFiles()?.each { candidate ->
if (candidate.isFile() && candidate.name.endsWith(".zip")) {
candidate.delete()
}
}
}

from("zip_include")

from(shadowJar.archiveFile) {
rename { "airclient.jar" }
}
}

build.dependsOn packageReleaseZip

// ForgeGradle 2.x puts the packaged mod jar on runClient's classpath. This
// project's normal build jar is reobfuscated for Minecraft launchers, so it
Expand All @@ -230,7 +265,7 @@ task runClientDevJar(type: Jar) {
"FMLCorePlugin": "net.ccbluex.liquidbounce.injection.forge.MixinLoader",
"FMLCorePluginContainsFMLMod": true,
"ForceLoadAsMod": true,
"MixinConfigs": "liquidbounce.forge.mixins.json,mixins.phosphor.json",
"MixinConfigs": "liquidbounce.forge.mixins.json",
"ModSide": "CLIENT",
"TweakClass": "org.spongepowered.asm.launch.MixinTweaker",
"TweakOrder": "0",
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ org.gradle.daemon=true
org.gradle.parallel=true
org.gradle.caching=true

mod_version=b1.2
mod_version=b1.3
maven_group=net.ccbluex
archives_base_name=AirClient

Expand Down

This file was deleted.

This file was deleted.

12 changes: 0 additions & 12 deletions src/main/java/me/jellysquid/mods/phosphor/api/ILightingEngine.java

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading