Skip to content

Commit

Permalink
1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
thecatcore committed Jan 28, 2024
1 parent d7580d3 commit 35d7ac2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Publish 1.4
name: Publish 1.5

on:
push:
branches:
- "dev/1.4"
- "dev/1.5"

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {

group 'net.legacyfabric'
base.archivesName = project.name
def baseVersion = '1.4'
def baseVersion = '1.5'

def ENV = System.getenv()
if (ENV.GITHUB_RUN_NUMBER) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,12 @@
import org.gradle.api.Plugin;
import org.gradle.api.Project;
import org.gradle.api.plugins.PluginAware;
import org.gradle.api.provider.Provider;

import java.io.*;
import java.util.Map;
import java.util.Objects;
import java.util.jar.Manifest;

import static net.fabricmc.loom.task.AbstractRemapJarTask.MANIFEST_PATH;

public class LegacyLoomingGradlePlugin implements Plugin<PluginAware> {
public static final String VERSION = Objects.requireNonNullElse(LegacyLoomingGradlePlugin.class.getPackage().getImplementationVersion(), "0.0.0+unknown");

Expand Down Expand Up @@ -62,7 +59,7 @@ private static void setManifestAttributes(Project project, LegacyLoomingExtensio
if (task instanceof AbstractRemapJarTask remapJarTask) {
remapJarTask.doLast(task1 -> {
try {
ZipUtils.transform(remapJarTask.getArchiveFile().get().getAsFile().toPath(), Map.of(MANIFEST_PATH, bytes -> {
ZipUtils.transform(remapJarTask.getArchiveFile().get().getAsFile().toPath(), Map.of("META-INF/MANIFEST.MF", bytes -> {
var manifest = new Manifest(new ByteArrayInputStream(bytes));

var attributes = manifest.getMainAttributes();
Expand Down

0 comments on commit 35d7ac2

Please sign in to comment.