Skip to content

Commit

Permalink
Fix bundle versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
willpill committed Jan 21, 2024
1 parent 9511a23 commit 08d7bde
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion platform/mac/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<key>CFBundleSignature</key>
<string>net.mcreator.mcreator</string>
<key>CFBundleVersion</key>
<string>%mcreator%</string>
<string>%build%</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.developer-tools</string>

Expand Down
8 changes: 6 additions & 2 deletions platform/mac/mac.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
Expand Down Expand Up @@ -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')
}
Expand Down

0 comments on commit 08d7bde

Please sign in to comment.