Skip to content

Commit

Permalink
Tweaks and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
XyperCode committed Dec 31, 2022
1 parent 3157532 commit 07c2761
Show file tree
Hide file tree
Showing 16 changed files with 23 additions and 65 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,3 @@ jobs:
with:
name: Forge
path: forge/build/libs/
- name: Update Storer
run: java -jar updater/updater.jar
env:
STORER_TYPE: build
JAB125_COM_API_KEY: ${{ secrets.JAB125_COM_API_KEY }}
GITHUB_BUILD_NUMBER: ${{ github.run_number }}
33 changes: 0 additions & 33 deletions .github/workflows/update.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .run/Build Project.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<configuration default="false" name="Build Project" type="GradleRunConfiguration" factoryName="Gradle">
<ExternalSystemSettings>
<option name="executionName" value="advanced-debug build" />
<option name="externalProjectPath" value="C:\Users\quint\IdeaProjects\advanced-debug" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="externalSystemIdString" value="GRADLE" />
<option name="scriptParameters" value="" />
<option name="taskDescriptions">
Expand All @@ -11,6 +11,7 @@
<option name="taskNames">
<list>
<option value="build" />
<option value="mergeJars" />
</list>
</option>
<option name="vmOptions" />
Expand Down
6 changes: 2 additions & 4 deletions .run/Generate Runs.run.xml → .run/Idea Sync.run.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Generate Runs" type="GradleRunConfiguration" factoryName="Gradle">
<configuration default="false" name="Idea Sync" type="GradleRunConfiguration" factoryName="Gradle">
<ExternalSystemSettings>
<option name="executionName" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
Expand All @@ -10,9 +10,7 @@
</option>
<option name="taskNames">
<list>
<option value="genIntellijRuns" />
<option value="genEclipseRuns" />
<option value="genVSCodeRuns" />
<option value="ideaSyncTask" />
</list>
</option>
<option name="vmOptions" />
Expand Down
12 changes: 2 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,13 @@ repositories {
architectury {
minecraft = rootProject.minecraft_version
}
version = "${mod_version}-${System.getenv("GITHUB_BUILD_NUMBER") == null ? "local" : System.getenv("GITHUB_BUILD_NUMBER")}"

@SuppressWarnings('unused')
Object getViewVersion() {
return "${mod_version}+${System.getenv("GITHUB_BUILD_NUMBER") == null ? "local" : System.getenv("GITHUB_BUILD_NUMBER")}"
}
version = mod_version

@SuppressWarnings('unused')
Object getModDescription() {
return "${mod_description}"
}

forgix {
group = "com.ultreon.mods"
mergedJarName = "advanced-debug-${version}.jar"
Expand Down Expand Up @@ -55,10 +51,6 @@ subprojects {
officialMojangMappings()
parchment("org.parchmentmc.data:parchment-1.19.2:2022.08.10@zip")
}

// layered
// The following line declares the yarn mappings you may select this one as well.
// mappings "net.fabricmc:yarn:@YARN_MAPPINGS@:v2"
}
}

Expand Down
4 changes: 2 additions & 2 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ dependencies {
}

processResources {
inputs.property "version", rootProject.getViewVersion()
inputs.property "version", rootProject.version

filesMatching("fabric.mod.json") {
HashMap<String, ?> p = new HashMap<>()
p.put("version", rootProject.getViewVersion())
p.put("version", rootProject.version)
p.put("description", rootProject.getModDescription())
p.put("loaderVersion", rootProject.fabric_loader_version)
p.put("minecraftVersion", rootProject.architectury.minecraft)
Expand Down
Binary file removed fabric/src/main/resources/advanced_debug.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"issues": "https://github.com/Ultreon/advanced-debug/issues"
},
"license": "LGPL-3.0",
"icon": "advanced_debug.png",
"icon": "assets/advanced_debug/advanced_debug.png",
"environment": "*",
"entrypoints": {
"client": [
Expand Down
4 changes: 2 additions & 2 deletions forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ dependencies {
}

processResources {
inputs.property "version", rootProject.getViewVersion()
inputs.property "version", rootProject.version
inputs.property "description", rootProject.getModDescription()
System.out.println(inputs.getProperties())

filesMatching("META-INF/mods.toml") {
HashMap<String, ?> p = new HashMap<>()
p.put("version", rootProject.getViewVersion())
p.put("version", rootProject.version)
p.put("description", rootProject.getModDescription())
p.put("loaderVersion", rootProject.forge_version.split("\\.")[0])
p.put("forgeVersion", rootProject.forge_version)
Expand Down
Binary file modified forge/src/main/resources/advanced_debug.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
org.gradle.jvmargs=-Xmx5G
minecraft_version=1.19.2
archives_base_name=advanced_debug
archives_base_name=advanced-debug
mod_version=2.0.0
maven_group=com.ultreon.mods
architectury_version=6.2.43
Expand Down
4 changes: 2 additions & 2 deletions merge-fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ dependencies {
}

processResources {
// inputs.property "version", rootProject.getViewVersion()
// inputs.property "version", rootProject.version
//
// filesMatching("fabric.mod.json") {
// expand "version": rootProject.getViewVersion()
// expand "version": rootProject.version
// }
}

Expand Down
7 changes: 6 additions & 1 deletion merge-fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
"schemaVersion": 1,
"id": "advanced-debug-fabric",
"name": "Advanced Debug Wrapper",
"version": "1.0.0",
"version": "1",
"license": "GPL-v3.0",
"authors": [
"Qboi123",
"Jab125"
],
"custom": {
"modmenu": {
"badges": [
Expand Down
4 changes: 2 additions & 2 deletions merge-forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ dependencies {
}

processResources {
// inputs.property "version", rootProject.getViewVersion()
// inputs.property "version", rootProject.version
//
// filesMatching("META-INF/mods.toml") {
// expand "version": rootProject.getViewVersion()
// expand "version": rootProject.version
// }
}

Expand Down
1 change: 1 addition & 0 deletions merge-forge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ license = "GPL-3.0"
# The main mod, and all sub-mods.
[[mods]]
modId = "advanced_debug_forge"
version = "1"
displayName = "Advanced Debug Wrapper"
description = '''
Forge wrapper for advanced debug
Expand Down

0 comments on commit 07c2761

Please sign in to comment.