feat: adopt gradle-flatpak-sources plugin for offline Flatpak builds (#5619)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
James Rich
2026-05-27 17:33:35 -07:00
committed by GitHub
parent fda8f97f32
commit b9315d4b3f
14 changed files with 229 additions and 503 deletions
+2 -3
View File
@@ -78,11 +78,10 @@ fi
if [[ $SKIP_REGEN -eq 0 ]]; then
step "Regenerating flatpak-sources.json via isolated Gradle home"
rm -rf "$GRADLE_HOME_ISOLATED"
# Drive the same task the in-flatpak build runs so runtime-classpath deps (skiko, ktor-cio,
# datastore-proto, etc.) are resolved and captured — :assemble only triggers compileClasspath.
# The settings plugin (org.meshtastic.flatpak.sources.settings) captures URLs from
# build start — no init script or -I flag needed.
(cd "$REPO_ROOT" && ./gradlew --no-build-cache --no-configuration-cache \
-Dgradle.user.home="$GRADLE_HOME_ISOLATED" \
-I gradle/init-scripts/flatpak-ops.init.gradle.kts \
:desktopApp:packageUberJarForCurrentOS :captureFlatpakSources)
cp "$REPO_ROOT/build/flatpak-ops-sources.json" "$SOURCES_JSON"
elif [[ ! -f "$SOURCES_JSON" ]]; then