From 3f60f222e218388e3d33ce15b76fda7e6562f3ff Mon Sep 17 00:00:00 2001 From: Wojciech Mazur Date: Tue, 22 Oct 2024 21:03:02 +0200 Subject: [PATCH] Override `dist-win-x86_64/Windows/version` with developedVersion to workaround wix limitations --- project/Build.scala | 3 +++ 1 file changed, 3 insertions(+) diff --git a/project/Build.scala b/project/Build.scala index fce82fa628b4..5820c3c922cb 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -2275,6 +2275,9 @@ object Build { ) .settings( Windows / name := "scala", + // Windows/version is used to create ProductInfo - it requires a version without any -RC suffixes + // If not explicitly overriden it would try to use `dottyVersion` assigned to `dist-win-x86_64/version` + Windows / version := developedVersion, Windows / mappings := (Universal / mappings).value, Windows / packageBin := (Windows / packageBin).dependsOn(republish).value, Windows / wixFiles := (Windows / wixFiles).dependsOn(republish).value,