|
2 | 2 | // SPDX-License-Identifier: Apache-2.0 |
3 | 3 |
|
4 | 4 | import org.jetbrains.intellij.platform.gradle.TestFrameworkType |
| 5 | +import org.jetbrains.intellij.platform.gradle.tasks.aware.RuntimeAware |
5 | 6 | import software.aws.toolkits.gradle.findFolders |
6 | 7 | import software.aws.toolkits.gradle.intellij.IdeVersions |
7 | 8 |
|
8 | 9 | plugins { |
9 | 10 | id("toolkit-kotlin-conventions") |
10 | 11 | id("toolkit-intellij-plugin") |
11 | 12 |
|
12 | | - id("org.jetbrains.intellij.platform.module") |
| 13 | + id("org.jetbrains.intellij.platform") |
13 | 14 | } |
14 | 15 |
|
15 | 16 | val ideProfile = IdeVersions.ideProfile(project) |
@@ -100,3 +101,44 @@ val action = Action<TaskExecutionGraph> { |
100 | 101 | } |
101 | 102 | } |
102 | 103 | gradle.taskGraph.whenReady(action) |
| 104 | +// |
| 105 | +//abstract class InstallCefAppArmor : DefaultTask(), RuntimeAware { |
| 106 | +// @TaskAction |
| 107 | +// fun execute() { |
| 108 | +// println(runtimeLauncher.get().executablePath) |
| 109 | +// } |
| 110 | +//} |
| 111 | +//tasks.register("installCefAppArmor") { |
| 112 | +// description = "Install AppArmor profile for JBCef" |
| 113 | +// group = "Security" |
| 114 | +// val osName = System.getProperty("os.name").lowercase() |
| 115 | +// doFirst { |
| 116 | +// if (!osName.contains("linux")) { |
| 117 | +// println("Skipping AppArmor installation - not running on Linux") |
| 118 | +// return@doFirst |
| 119 | +// } |
| 120 | +// } |
| 121 | +// |
| 122 | +// doLast { |
| 123 | +// val profile = """ |
| 124 | +// # This profile is autogenerated to allow running sandboxed JCEF |
| 125 | +// abi <abi/4.0>, |
| 126 | +// include <tunables/global> |
| 127 | +// |
| 128 | +// profile %s flags=(unconfined) { |
| 129 | +// userns, |
| 130 | +// |
| 131 | +// include if exists <local/chrome> |
| 132 | +// } |
| 133 | +// """.trimIndent() |
| 134 | +// profile.format("/usr/lib/jvm/java-21-amazon-corretto.x86_64/bin/java") |
| 135 | +// val profileAction = JBCefAppArmorUtils.getInstallInstallAppArmorProfileAction() |
| 136 | +// if (profileAction != null) { |
| 137 | +// profileAction.run() |
| 138 | +// println("AppArmor profile installation completed") |
| 139 | +// } else { |
| 140 | +// println("No AppArmor profile installation action available") |
| 141 | +// } |
| 142 | +// } |
| 143 | +// |
| 144 | +//} |
0 commit comments