From f922cfd5bcb1ce8a41663db2f8d754f41dc1856f Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 5 May 2026 16:11:55 +0000 Subject: [PATCH] fix(desktop): also disable vlc/upx Extract tasks under skipVlcSetup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- desktopApp/build.gradle.kts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/desktopApp/build.gradle.kts b/desktopApp/build.gradle.kts index 268eb2818..803a0379b 100644 --- a/desktopApp/build.gradle.kts +++ b/desktopApp/build.gradle.kts @@ -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 } }