IJPL-217839 simplify createWindowsCustomizer

GitOrigin-RevId: 351c923e4ee8c641b371e3ce62e1407461a48913
This commit is contained in:
Vladimir Krivosheev
2025-11-13 12:12:34 +00:00
committed by intellij-monorepo-bot
parent 1b515e542b
commit e4364da218
9 changed files with 43 additions and 30 deletions
@@ -88,14 +88,16 @@ open class PyCharmCommunityProperties(protected val communityHome: Path) : PyCha
override fun getBaseArtifactName(appInfo: ApplicationInfoProperties, buildNumber: String): String = "pycharmPC-$buildNumber"
override fun createWindowsCustomizer(projectHome: String): WindowsDistributionCustomizer = object : WindowsDistributionCustomizer() {
override fun createWindowsCustomizer(projectHome: Path): WindowsDistributionCustomizer = object : WindowsDistributionCustomizer() {
init {
icoPath = "${communityHome}/python/build/resources/PyCharmCore.ico"
icoPathForEAP = "${communityHome}/python/build/resources/PyCharmCore_EAP.ico"
installerImagesPath = "${communityHome}/python/build/resources"
fileAssociations = listOf("py")
}
override val fileAssociations: List<String>
get() = listOf("py")
override fun getFullNameIncludingEdition(appInfo: ApplicationInfoProperties) = "PyCharm Community Edition"
override suspend fun copyAdditionalFiles(targetDir: Path, arch: JvmArchitecture, context: BuildContext) {