fix(desktop): also disable vlc/upx Extract tasks under skipVlcSetup
Disabling only vlcDownload/upxDownload/vlcSetup left the chained *Extract tasks in the graph with @InputFile properties pointing at archives that were never downloaded — Gradle 9 then fails the build during input validation: property 'upxArchiveFile' specifies file '/root/.gradle/vlcSetup/upx-4.2.4.tar.xz' which doesn't exist. Disable the full vlc-setup plugin task set (vlcDownload, vlcExtract, vlcFilterPlugins, vlcCompressPlugins, upxDownload, upxExtract, vlcSetup) so packaging skips VLC bundling cleanly. Verified locally: :desktopApp:packageDeb now proceeds past those tasks straight to jpackage with -PskipVlcSetup=true.
This commit is contained in:
@@ -176,8 +176,17 @@ val skipVlcSetup =
|
||||
System.getenv("AMETHYST_SKIP_VLC") == "true"
|
||||
|
||||
if (skipVlcSetup) {
|
||||
logger.lifecycle("desktopApp: skipVlcSetup=true — disabling vlcDownload/upxDownload/vlcSetup. Built artifacts will NOT bundle VLC.")
|
||||
tasks.matching { it.name in setOf("vlcDownload", "upxDownload", "vlcSetup") }.configureEach {
|
||||
logger.lifecycle("desktopApp: skipVlcSetup=true — disabling vlc-setup plugin tasks. Built artifacts will NOT bundle VLC.")
|
||||
val vlcPluginTasks = setOf(
|
||||
"vlcDownload",
|
||||
"vlcExtract",
|
||||
"vlcFilterPlugins",
|
||||
"vlcCompressPlugins",
|
||||
"upxDownload",
|
||||
"upxExtract",
|
||||
"vlcSetup",
|
||||
)
|
||||
tasks.matching { it.name in vlcPluginTasks }.configureEach {
|
||||
enabled = false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user