Skip to content

Commit

Permalink
Merge pull request #9 from Liams-Services/chore/8-better-version-names
Browse files Browse the repository at this point in the history
chore: Version scheme
  • Loading branch information
CoasterFreakDE authored Sep 5, 2024
2 parents 3644fc6 + ab10480 commit 2481a73
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 4 deletions.
19 changes: 19 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# ShaderAPI

A simple mod that allows you to download and apply shader packs from the internet.

## Usage

To use this mod, you need to have the [Iris Shaders](https://github.com/IrisShaders/Iris) mod installed.

Once you have Iris installed, you can download and apply shader packs by sending a request to the server.
(The server will need to have an implementation of the `ShaderAPI` Serverside. An example for PaperMC can be found [here](https://github.com/Liams-Services/ShaderAPI-Paper))


## Building

To build this mod, you need to have [Gradle](https://gradle.org/) installed.

1. Clone the repository
2. Open the project in your IDE
3. Run the `gradle chiseledBuild` task to build the mod for all versions
7 changes: 6 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import java.util.*

plugins {
kotlin("jvm") version "2.0.20"
id("fabric-loom") version "1.7.1"
id("maven-publish")
}

version = project.property("mod_version") as String
val dailyVersion = Calendar.getInstance(TimeZone.getTimeZone("Europe/Berlin")).run {
"${get(Calendar.YEAR)}.${get(Calendar.MONTH) + 1}.${get(Calendar.DAY_OF_MONTH)}"
}

version = dailyVersion + "-" + project.property("minecraft_version") as String
group = project.property("maven_group") as String

base {
Expand Down
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ yarn_mappings=[VERSIONED]
loader_version=0.16.3
kotlin_loader_version=1.12.1+kotlin.2.0.20
# Mod Properties
mod_version=[VERSIONED]
maven_group=com.liamxsage
archives_base_name=shaderapi
# Dependencies
Expand Down
1 change: 0 additions & 1 deletion versions/1.21.1/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
minecraft_version=1.21.1
yarn_mappings=1.21.1+build.3
mod_version=1.21.1
fabric_version=0.103.0+1.21.1
1 change: 0 additions & 1 deletion versions/1.21/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
minecraft_version=1.21
yarn_mappings=1.21+build.3
mod_version=1.21
fabric_version=0.102.0+1.21

0 comments on commit 2481a73

Please sign in to comment.