mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-01-19 00:07:17 +01:00
versioning
This commit is contained in:
parent
65a86a6e97
commit
f950e25dad
10
build.gradle
10
build.gradle
@ -88,13 +88,20 @@ openApi {
|
||||
outputFileName = "SwaggerDoc.json"
|
||||
}
|
||||
|
||||
def getMacVersion(String version) {
|
||||
def currentYear = java.time.Year.now().getValue()
|
||||
// Extract everything after the first dot (or the whole string if no dot)
|
||||
def versionParts = version.split("\\.", 2)
|
||||
return "${currentYear}.${versionParts.length > 1 ? versionParts[1] : versionParts[0]}"
|
||||
}
|
||||
|
||||
jpackage {
|
||||
// Input directory containing the jar
|
||||
input = "build/libs"
|
||||
|
||||
// Application details
|
||||
appName = "Stirling-PDF"
|
||||
appVersion = "0.36.3"
|
||||
appVersion = project.version
|
||||
vendor = "Stirling-Software"
|
||||
|
||||
// Main application configuration
|
||||
@ -132,6 +139,7 @@ jpackage {
|
||||
|
||||
// macOS-specific configuration
|
||||
mac {
|
||||
appVersion = getMacVersion(project.version.toString())
|
||||
icon = "src/main/resources/static/favicon.icns"
|
||||
type = "dmg"
|
||||
macPackageIdentifier = "com.stirling.software.pdf"
|
||||
|
Loading…
Reference in New Issue
Block a user