-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 56f496f
Showing
33 changed files
with
1,947 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# This workflow will build a Java project with Gradle | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | ||
|
||
name: Java CI with Gradle | ||
|
||
on: | ||
push: | ||
paths: | ||
- "src/**" | ||
- ".github/**" | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
|
||
- name: Cache gradle files | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
./.gradle/loom-cache | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle', 'gradle.properties', '**/*.accesswidener') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Display build number | ||
run: echo Tweak My Client \#$GITHUB_RUN_NUMBER | ||
- name: Set build number in codes | ||
run: sed -i "s/build.undefined/build.$GITHUB_RUN_NUMBER/g" src/main/java/top/hendrixshen/TweakMyClient/Reference.java build.properties | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Build with Gradle | ||
run: ./gradlew build | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: build-artifacts | ||
path: build/libs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Publish Release | ||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
|
||
- name: Cache gradle files | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
./.gradle/loom-cache | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle', 'gradle.properties', '**/*.accesswidener') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Display build number | ||
run: echo Tweak My Client \#$GITHUB_RUN_NUMBER | ||
- name: Set build number in codes | ||
run: sed -i "s/build.undefined/build.$GITHUB_RUN_NUMBER/g" src/main/java/top/hendrixshen/TweakMyClient/Reference.java build.properties | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Build with Gradle | ||
run: ./gradlew build | ||
- name: Upload assets to GitHub | ||
uses: AButler/[email protected] | ||
with: | ||
files: 'build/libs/*' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Tweak-My-Client | ||
Add something interesting <3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
buildscript { | ||
repositories { | ||
jcenter() | ||
maven { | ||
name = "Fabric" | ||
url = "https://maven.fabricmc.net/" | ||
} | ||
} | ||
dependencies { | ||
classpath 'net.fabricmc:fabric-loom:0.5-SNAPSHOT' | ||
} | ||
} | ||
|
||
plugins { | ||
id 'fabric-loom' version '0.7-SNAPSHOT' | ||
id 'maven-publish' | ||
} | ||
|
||
repositories { | ||
maven { | ||
url 'https://masa.dy.fi/maven' | ||
} | ||
} | ||
|
||
sourceCompatibility = JavaVersion.VERSION_1_8 | ||
targetCompatibility = JavaVersion.VERSION_1_8 | ||
|
||
ext.configFile = file "build.properties" | ||
|
||
compileJava { | ||
sourceCompatibility = JavaVersion.VERSION_1_8 | ||
targetCompatibility = JavaVersion.VERSION_1_8 | ||
options.encoding = 'UTF-8' | ||
} | ||
|
||
configFile.withReader { | ||
def prop = new Properties() | ||
prop.load(it) | ||
project.ext.config = new ConfigSlurper().parse prop | ||
} | ||
|
||
dependencies { | ||
minecraft "com.mojang:minecraft:${config.minecraft_version}" | ||
mappings "net.fabricmc:yarn:${config.mappings_version}:v2" | ||
modCompile "net.fabricmc:fabric-loader:${config.fabric_loader_version}" | ||
compile "com.google.code.findbugs:jsr305:3+" | ||
|
||
modCompile "fi.dy.masa.malilib:malilib-fabric-${config.minecraft_version_masa}:${config.malilib_version}" | ||
|
||
// Fabric API. This is technically optional, but you probably want it anyway. | ||
//modCompile "net.fabricmc.fabric-api:fabric-api:" + config.fabric_version | ||
|
||
modCompileOnly "io.github.prospector:modmenu:" + config.mod_menu_version | ||
} | ||
|
||
minecraft { | ||
ext.mod_version = config.mod_version | ||
ext.mod_version_detail = config.mod_version_detail | ||
|
||
mod_version = mod_version + "-" + mod_version_detail | ||
} | ||
|
||
compileJava { | ||
sourceCompatibility = JavaVersion.VERSION_1_8 | ||
targetCompatibility = JavaVersion.VERSION_1_8 | ||
options.encoding = 'UTF-8' | ||
} | ||
|
||
group = config.group + "." + config.mod_id | ||
archivesBaseName = config.mod_file_name + '-' + config.minecraft_version_out | ||
version = project.minecraft.mod_version_detail | ||
|
||
processResources | ||
{ | ||
// Exclude the GIMP image files | ||
exclude '**/*.xcf' | ||
exclude '**/xcf' | ||
|
||
// this will ensure that this task is redone when the versions change. | ||
//inputs.property "mod_version", project.minecraft.mod_version | ||
//inputs.property "minecraft_version", project.config.minecraft_version | ||
|
||
inputs.property "mod_version", project.minecraft.mod_version | ||
|
||
from(sourceSets.main.resources.srcDirs) { | ||
include "fabric.mod.json" | ||
expand "mod_version": project.minecraft.mod_version | ||
} | ||
|
||
from(sourceSets.main.resources.srcDirs) { | ||
exclude "fabric.mod.json" | ||
} | ||
} | ||
|
||
// ensure that the encoding is set to UTF-8, no matter what the system default is | ||
// this fixes some edge cases with special characters not displaying correctly | ||
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html | ||
tasks.withType(JavaCompile) { | ||
options.encoding = "UTF-8" | ||
} | ||
|
||
|
||
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task | ||
// if it is present. | ||
// If you remove this task, sources will not be generated. | ||
task sourcesJar(type: Jar, dependsOn: classes) { | ||
classifier = 'sources' | ||
from sourceSets.main.allSource | ||
} | ||
|
||
jar { | ||
from "LICENSE" | ||
} | ||
|
||
tasks.publish.dependsOn build | ||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
// add all the jars that should be included when publishing to maven | ||
artifact(jar) { | ||
builtBy remapJar | ||
} | ||
artifact(sourcesJar) { | ||
builtBy remapSourcesJar | ||
} | ||
} | ||
} | ||
|
||
repositories { | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Thu Jan 14 08:33:00 EET 2016 | ||
group = top.hendrixshen | ||
mod_id = tweak-my-client | ||
mod_name = Tweak My Client | ||
author = Hendrix_Shen | ||
mod_file_name = TweakMyClient-fabric | ||
|
||
# Current mod version | ||
mod_version_detail = 1.0.0+build.undefined | ||
mod_version = 1.0.0 | ||
|
||
# Required malilib version | ||
malilib_version = 0.10.0-dev.21+arne.1 | ||
|
||
# Minecraft, Fabric and mappings versions | ||
minecraft_version_masa = 1.16.4 | ||
minecraft_version_out = 1.16.5 | ||
minecraft_version = 1.16.5 | ||
mappings_version = 1.16.5+build.8 | ||
|
||
fabric_loader_version = 0.11.3 | ||
mod_menu_version = 1.14.6+build.31 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#Mon Aug 22 17:36:22 EDT 2016 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.2-bin.zip |
Oops, something went wrong.