mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-11 17:17:32 +00:00
update buildscript
This commit is contained in:
1 file changed
+6
-4
+6
-4
@@ -1,4 +1,4 @@
|
||||
//version: 1656003793falsepattern62
|
||||
//version: 1656003793falsepattern67
|
||||
/*
|
||||
DO NOT CHANGE THIS FILE!
|
||||
|
||||
@@ -670,6 +670,8 @@ def getCredentials = {
|
||||
}
|
||||
|
||||
//Publishing
|
||||
tasks.publish.dependsOn(build)
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
maven(MavenPublication) {
|
||||
@@ -753,7 +755,7 @@ if (curseForgeProjectId != "" && System.getenv("CURSEFORGE_TOKEN") != null) {
|
||||
addGameVersion project.minecraft.version
|
||||
addGameVersion "Forge"
|
||||
mainArtifact(jar) {
|
||||
displayName = "$modName version: $modVersion"
|
||||
displayName = "$modName $modVersion"
|
||||
}
|
||||
}
|
||||
options {
|
||||
@@ -1067,7 +1069,7 @@ def deobf(String sourceURL, String rawFileName) {
|
||||
}
|
||||
|
||||
download.run {
|
||||
src "http://jenkins.usrv.eu:8081/nexus/content/repositories/releases/com/github/parker8283/BON2/$bon2Version-CUSTOM/BON2-$bon2Version-CUSTOM-all.jar"
|
||||
src "https://github.com/FalsePattern/ExampleMod1.7.10/raw/main/blobs/BON2-2.5.1.jar"
|
||||
dest bon2File
|
||||
quiet true
|
||||
overwrite false
|
||||
@@ -1081,7 +1083,7 @@ def deobf(String sourceURL, String rawFileName) {
|
||||
}
|
||||
|
||||
exec {
|
||||
commandLine 'java', '-jar', bon2File, '--inputJar', obfFile, '--outputJar', deobfFile, '--mcVer', minecraftVersion, '--mappingsVer', mappingsVer, '--notch'
|
||||
commandLine Paths.get(System.getProperty("java.home"), "bin", "java").toAbsolutePath().toString(), '-jar', bon2File, '--inputJar', obfFile, '--outputJar', deobfFile, '--mcVer', minecraftVersion, '--mappingsVer', mappingsVer, '--notch'
|
||||
workingDir bon2Dir
|
||||
standardOutput = new FileOutputStream("${deobfFile}.log")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user