From 08d7bde5fa1364681d0cda1a4442f92fce883661 Mon Sep 17 00:00:00 2001 From: willpill <65963376+willpill@users.noreply.github.com> Date: Sun, 21 Jan 2024 15:16:31 -0500 Subject: [PATCH] Fix bundle versioning --- platform/mac/Info.plist | 2 +- platform/mac/mac.gradle | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/platform/mac/Info.plist b/platform/mac/Info.plist index ed2debec3a6..7cf6995c51e 100644 --- a/platform/mac/Info.plist +++ b/platform/mac/Info.plist @@ -30,7 +30,7 @@ CFBundleSignature net.mcreator.mcreator CFBundleVersion - %mcreator% + %build% LSApplicationCategoryType public.app-category.developer-tools diff --git a/platform/mac/mac.gradle b/platform/mac/mac.gradle index cb1f6ce1013..d2d1fa4498f 100644 --- a/platform/mac/mac.gradle +++ b/platform/mac/mac.gradle @@ -54,7 +54,9 @@ tasks.register('exportMacX64', Copy.class) { into(exportPathX64 + '/Contents/') into('') { from file('platform/mac/Info.plist') rename('Info.plist', 'Info.plistdos') filter { line -> - line.replace('%mcreator%', (String) project.mcreatorconf.getProperty('mcreator')) + line = line.replace('%mcreator%', (String) project.mcreatorconf.getProperty('mcreator')) + line = line.replace('%build%', project.builddate.toString()) + return line } from file('LICENSE.txt') } @@ -108,7 +110,9 @@ tasks.register('exportMacAarch64', Copy.class) { into(exportPathAarch64 + '/Contents/') into('') { from file('platform/mac/Info.plist') rename('Info.plist', 'Info.plistdos') filter { line -> - line.replace('%mcreator%', (String) project.mcreatorconf.getProperty('mcreator')) + line = line.replace('%mcreator%', (String) project.mcreatorconf.getProperty('mcreator')) + line = line.replace('%build%', project.builddate.toString()) + return line } from file('LICENSE.txt') }