Skip to content

Commit

Permalink
Revert "Using NeoForge Installer instead of Forge, update correct icon (
Browse files Browse the repository at this point in the history
#121)"

This reverts commit a245727.
  • Loading branch information
KorewaLidesu authored Oct 27, 2024
1 parent a245727 commit e39c12a
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 162 deletions.
65 changes: 0 additions & 65 deletions FORGE-CREDITS.txt

This file was deleted.

10 changes: 0 additions & 10 deletions LICENSE-Paulscode IBXM Library.txt

This file was deleted.

40 changes: 0 additions & 40 deletions LICENSE-Paulscode SoundSystem CodecIBXM.txt

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
- For regular launcher (official launcher, AT launcher, FTB, HMCL), download the installer jar from release. You could use the installer like the Forge one.
- **Remember to install Fugue!**
- **And Scalar!**
- **Do not generate a fat-installer as this is not supported.**

## Build Instructions:

Expand Down
55 changes: 12 additions & 43 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ buildscript {
name "Outlands"
url "https://maven.outlands.top/releases/"
}
maven {
name "NeoForge"
url = 'https://maven.neoforged.net/releases/'
}
}
dependencies {
classpath "net.minecraftforge.gradle:ForgeGradle:6.0.+"
Expand Down Expand Up @@ -98,10 +94,6 @@ project(':mcp') {
name 'MinecraftForge'
url 'https://maven.minecraftforge.net/'
}
maven {
name "NeoForge"
url = 'https://maven.neoforged.net/releases/'
}

}
mcp {
Expand All @@ -127,10 +119,6 @@ project(':minecraft') {
name 'MinecraftForge'
url 'https://maven.minecraftforge.net/'
}
maven {
name "NeoForge"
url = 'https://maven.neoforged.net/releases/'
}

}
dependencies {
Expand Down Expand Up @@ -247,10 +235,6 @@ project(':cleanroom') {
maven {
url "https://maven.outlands.top/releases/"
}
maven {
name "NeoForge"
url = 'https://maven.neoforged.net/releases/'
}
}

ext {
Expand Down Expand Up @@ -653,8 +637,8 @@ project(':cleanroom') {

// TODO: Include?
def extra_files = [
rootProject.file('FORGE-CREDITS.txt'),
rootProject.file('LICENSE'),
rootProject.file('CREDITS.txt'),
rootProject.file('LICENSE.txt'),
rootProject.file('LICENSE-Paulscode IBXM Library.txt'),
rootProject.file('LICENSE-Paulscode SoundSystem CodecIBXM.txt')
]
Expand Down Expand Up @@ -886,7 +870,7 @@ project(':cleanroom') {
artifact: [
path: "${project.group.replace('.', '/')}/${project.name}/${project.version}/${project.name}-${project.version}.jar",
// Do not include the URL so that the installer/launcher won't grab it. This is also why we don't have the universal classifier
url: ' ',
url: '',
sha1: Util.sha1(universalJar.archivePath),
size: universalJar.archivePath.length()
]
Expand All @@ -909,7 +893,7 @@ project(':cleanroom') {
task installerJson(dependsOn: [launcherJson, genClientBinPatches/*, createClientSRG, createServerSRG*/]) {
ext {
output = file('build/install_profile.json')
installer_tools = "net.neoforged.installertools:installertools:$props.installer_tools_version"
installer_tools = "net.minecraftforge:installertools:$props.installer_tools_version"
}
inputs.file universalJar.archivePath
inputs.file genClientBinPatches.toolJar
Expand All @@ -923,7 +907,7 @@ project(':cleanroom') {
artifact: [
path: "${project.group.replace('.', '/')}/${project.name}/${project.version}/${project.name}-${project.version}.jar",
// Do not include the URL so that the installer/launcher won't grab it. This is also why we don't have the universal classifier
url: ' ',
url: '',
sha1: Util.sha1(universalJar.archivePath),
size: universalJar.archivePath.length()
]
Expand All @@ -933,9 +917,9 @@ project(':cleanroom') {
def json = [
_comment_: launcherJson.comment,
spec: 0,
profile: project.name.capitalize(),
profile: project.name,
version: launcherJson.id,
icon: 'null',
icon: 'data:image/png;base64,' + new String(Base64.getEncoder().encode(Files.readAllBytes(rootProject.file('icon.ico').toPath()))),
json: '/version.json',
path: "${project.group}:${project.name}:${project.version}",
logo: '/big_logo.png',
Expand Down Expand Up @@ -1019,7 +1003,7 @@ project(':cleanroom') {
}

task downloadInstaller(type: DownloadMavenArtifact) {
artifact = 'net.neoforged:legacyinstaller:3.0.+:shrunk'
artifact = 'net.minecraftforge:installer:2.2.+:fatjar'
changing = true
}

Expand All @@ -1028,7 +1012,10 @@ project(':cleanroom') {
archiveExtension = 'jar' //Needs to be Zip task to not override Manifest, so set extension
destinationDirectory = file('build/libs')
from(extra_files)
from(rootProject.file('src/main/resources/url.png'))
from(rootProject.file('/src/main/resources/forge_logo.png')) {
rename { 'big_logo.png' }
}
from(rootProject.file('/src/main/resources/url.png'))
from(universalJar) {
into("/maven/${project.group.replace('.', '/')}/${project.name}/${project.version}/")
rename { "${project.name }-${project.version }.jar" }
Expand All @@ -1037,24 +1024,6 @@ project(':cleanroom') {
from(launcherJson.output)
from(zipTree(downloadInstaller.output)) {
duplicatesStrategy = 'exclude'
exclude(
[
"icons/**",
"big_logo.png"
])
}
from(rootProject.file('logos/cleanroom-logo_64.png')) {
rename { "big_logo.png" }
}
// TODO : get from https://raw.githubusercontent.com/CleanroomMC/Resources/refs/heads/master/Art/cleanroom-logo.png and make the sizes automatic.
from(rootProject.file('logos/cleanroom-logo_16.png')) {
rename { "icons/neoforged_background_16x16.png" }
}
from(rootProject.file('logos/cleanroom-logo_32.png')) {
rename { "icons/neoforged_background_32x32.png" }
}
from(rootProject.file('logos/cleanroom-logo_128.png')) {
rename { "icons/neoforged_background_128x128.png" }
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@ class Util {
"https://maven.minecraftforge.net/",
"https://repo.maven.apache.org/maven2/",
"https://libraries.minecraft.net/",
"https://maven.outlands.top/releases/",
"https://maven.neoforged.net/releases/"
"https://maven.outlands.top/releases/"
]
try {
return urlList.stream().map(original -> original + path)
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mcp_version = 20240102.171137
special_source = net.md-5:SpecialSource:1.9.0
special_source_mcp = net.md-5:SpecialSource:1.8.5
binary_patcher = net.minecraftforge:binarypatcher:1.1.1:fatjar
installer_tools_version = 2.1.7
installer_tools_version = 1.4.1

# Libraries
asm_version = 9.6
Expand Down
Binary file added icon.ico
Binary file not shown.
Binary file removed logos/cleanroom-logo_128.png
Binary file not shown.
Binary file removed logos/cleanroom-logo_16.png
Binary file not shown.
Binary file removed logos/cleanroom-logo_32.png
Binary file not shown.
Binary file removed logos/cleanroom-logo_512.png
Binary file not shown.
Binary file removed logos/cleanroom-logo_64.png
Binary file not shown.

0 comments on commit e39c12a

Please sign in to comment.