From 6cbd4187038eecfa1e8a3290999f9fcf87d34046 Mon Sep 17 00:00:00 2001 From: ichttt Date: Wed, 16 Oct 2019 00:00:03 +0200 Subject: [PATCH] Include a profile icon for the launcher json (#6222) --- build.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.gradle b/build.gradle index 04a4b3d8e..98360aaff 100644 --- a/build.gradle +++ b/build.gradle @@ -13,6 +13,8 @@ buildscript { } import groovy.json.JsonSlurper import groovy.json.JsonBuilder + +import java.nio.file.Files import java.text.SimpleDateFormat import java.util.Date import java.util.LinkedHashMap @@ -773,6 +775,7 @@ project(':forge') { spec: 0, profile: project.name, version: launcherJson.id, + 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',