Include a profile icon for the launcher json (#6222)

This commit is contained in:
ichttt authored and LexManos committed 2019-10-15 15:00:03 -07:00
1 parent 6c8342b74e
commit 6cbd418703
1 file changed
+3
+3
View File
@@ -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',