Skip to content

Commit

Permalink
switch from version system to build numbers and a small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BlazeMCworld committed Feb 6, 2023
1 parent 1a73101 commit ce247a0
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,18 @@ jobs:
- name: Setup gradlew permissions
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
run: ./gradlew build '-Pversion=${{ github.run_number }}'
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: JsScripts
path: ./build/libs/*
path: ./build/libs/jsscripts-${{ github.run_number }}.jar
- name: Publish Release
uses: marvinpinto/[email protected]
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "Build-${{ github.run_number }}"
prerelease: false
files: |
./build/libs/jsscripts-${{ github.run_number }}.jar
LICENSE
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {

import net.fabricmc.loom.task.RemapJarTask

version = project.mod_version
//version = project.mod_version -> set using "gradlew build '-Pversion=HERE'"
group = project.maven_group

repositories {
Expand Down
5 changes: 2 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx1G
org.gradle.jvmargs=-Xmx2G
# Fabric Properties
# check these on https://modmuss50.me/fabric.html
minecraft_version=1.19.2
Expand All @@ -11,5 +11,4 @@ maven_group=de.blazemcworld
archives_base_name=jsscripts
# Dependencies
# check this on https://modmuss50.me/fabric.html
fabric_version=0.64.0+1.19.2
org.gradle.jvmargs=-Xmx4g
fabric_version=0.64.0+1.19.2
12 changes: 6 additions & 6 deletions src/main/java/de/blazemcworld/jsscripts/JsScriptsCmd.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ public void register() {
.executes((e) -> {
JsScripts.displayChat(Text.literal("Invalid usage! Usage:").formatted(Formatting.AQUA));
JsScripts.displayChat(Text.literal("/jsscripts gen_types <args>").formatted(Formatting.AQUA));
JsScripts.displayChat(Text.literal("Specific classes: the.class.Name"));
JsScripts.displayChat(Text.literal("All in a package: some.package.*"));
JsScripts.displayChat(Text.literal("Enable asm for methods: -asm"));
JsScripts.displayChat(Text.literal("Remap asm output: -remap"));
JsScripts.displayChat(Text.literal("Show private methods: -private"));
JsScripts.displayChat(Text.literal("Example: /jsscripts gen_types java.lang.System -private -asm"));
JsScripts.displayChat(Text.literal("Specific classes: the.class.Name").formatted(Formatting.AQUA));
JsScripts.displayChat(Text.literal("All in a package: some.package.*").formatted(Formatting.AQUA));
JsScripts.displayChat(Text.literal("Enable asm for methods: -asm").formatted(Formatting.AQUA));
JsScripts.displayChat(Text.literal("Remap asm output: -remap").formatted(Formatting.AQUA));
JsScripts.displayChat(Text.literal("Show private methods: -private").formatted(Formatting.AQUA));
JsScripts.displayChat(Text.literal("Example: /jsscripts gen_types java.lang.System -private -asm").formatted(Formatting.AQUA));
return 1;
})
.then(argument("classes", StringArgumentType.greedyString())
Expand Down

0 comments on commit ce247a0

Please sign in to comment.