From 34b90c7cbee0d43ff36b85c6f92f3c7e57fc86c8 Mon Sep 17 00:00:00 2001 From: Stef Tervelde Date: Sun, 9 Mar 2025 23:58:43 +0100 Subject: [PATCH] Windows Packaging --- .gitignore | 1 + app/build.gradle.kts | 15 ++++++++++++++- app/windows/Processing.wixproj | 5 +++++ app/windows/Processing.wxs | 31 +++++++++++++++++++++++++++++++ app/windows/background.png | Bin 0 -> 3811 bytes app/windows/banner.png | Bin 0 -> 824 bytes app/windows/license.rtf | 1 + core/build.gradle.kts | 3 +++ 8 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 app/windows/Processing.wixproj create mode 100644 app/windows/Processing.wxs create mode 100644 app/windows/background.png create mode 100644 app/windows/banner.png create mode 100644 app/windows/license.rtf diff --git a/.gitignore b/.gitignore index ebdb29b67..7faa26d70 100644 --- a/.gitignore +++ b/.gitignore @@ -112,3 +112,4 @@ java/build/ /core/examples/build .build/ +/app/windows/obj diff --git a/app/build.gradle.kts b/app/build.gradle.kts index c72079f00..13d2a66fd 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -143,16 +143,29 @@ tasks.register("packageCustomDmg"){ ) } +tasks.register("packageCustomMsi"){ + workingDir = file("windows") + commandLine( + "dotnet", + "build", + "/p:Platform=x64" + ) +} + afterEvaluate{ tasks.named("packageDmg").configure{ dependsOn("packageCustomDmg") group = "compose desktop" actions = emptyList() } + tasks.named("packageMsi").configure{ + dependsOn("packageCustomMsi") + group = "compose desktop" + actions = emptyList() + } } - // LEGACY TASKS // Most of these are shims to be compatible with the old build system // They should be removed in the future, as we work towards making things more Gradle-native diff --git a/app/windows/Processing.wixproj b/app/windows/Processing.wixproj new file mode 100644 index 000000000..20751a6a9 --- /dev/null +++ b/app/windows/Processing.wixproj @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/windows/Processing.wxs b/app/windows/Processing.wxs new file mode 100644 index 000000000..e3d6bc5e1 --- /dev/null +++ b/app/windows/Processing.wxs @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/windows/background.png b/app/windows/background.png new file mode 100644 index 0000000000000000000000000000000000000000..7345e853daf031b1b5be6663b06ba40773df6ede GIT binary patch literal 3811 zcmeAS@N?(olHy`uVBq!ia0y~yV7|q`z*NA&1{5iKE?EtvI14-?iy0WiR6&^0Gf3qF zP>``W$lZxy-8q?;Kn_c~qpu?a!^VE@KZ&di415)yE{-7;jBl?yGCDYjI2`m>tdyBj zJi%SrYtQX-TV}l7b3dO!>`TmX1_p;*d7yp;WuT=D0z$b!lB3fMNVd3014*Yvyg*X% zBG54n6Ec{A%00F)0+p+bDjy9Q@)N;~zR|Qan#)EDl+mJgv{o6dZ%3OJqm8c7_T^~H gd$f}=)pmvFEF$*PxLE { duplicatesStrategy = DuplicatesStrategy.EXCLUDE +} +tasks.compileJava{ + options.encoding = "UTF-8" } \ No newline at end of file