Skip to content

Commit

Permalink
Fix configuration cache exception on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyTsvetkov committed Jan 10, 2023
1 parent a072c13 commit 2f1203c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ internal fun JvmApplicationContext.packageBuildVersionFor(
private fun JvmApplicationDistributions.packageBuildVersionFor(
targetFormat: TargetFormat
): String? {
check(targetFormat.targetOS == OS.MacOS)
if (targetFormat.targetOS != OS.MacOS) return null

val formatSpecificVersion: String? = when (targetFormat) {
TargetFormat.AppImage -> null
TargetFormat.Dmg -> macOS.dmgPackageBuildVersion
Expand Down

0 comments on commit 2f1203c

Please sign in to comment.