From ada16f4f5f2e859624ad8588ff07cdbff945aac0 Mon Sep 17 00:00:00 2001 From: Austin Date: Tue, 12 May 2026 21:04:52 -0400 Subject: [PATCH] Flatpak: Add Maven/Gradle mirror URLs (#5433) Co-authored-by: James Rich <2199651+jamesarich@users.noreply.github.com> --- .github/workflows/release.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6b37a0d71..408c1f9ea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -420,7 +420,20 @@ jobs: - name: Combine Flatpak source files run: > - jq -s 'add | unique_by(.dest + "/" + .["dest-filename"] + "/" + (.["only-arches"] | tostring))' flatpak-multisrc/*/*.json + jq -s 'add | unique_by(.dest + "/" + .["dest-filename"] + "/" + (.["only-arches"] | tostring))' + flatpak-multisrc/*/*.json + > flatpak-sources-combined.json + + - name: Add mirror-urls for Maven Central + run: > + jq '[.[] | if (.url | test("^https://repo\\.maven\\.apache\\.org/maven2/")) then . + {"mirror-urls": [(.url | sub("^https://repo\\.maven\\.apache\\.org/maven2/"; "https://maven-central.storage-download.googleapis.com/maven2/"))]} else . end]' + flatpak-sources-combined.json + > flatpak-sources-central.json + + - name: Add mirror-urls for Gradle Plugin Portal + run: > + jq '[.[] | if (.url | test("^https://plugins\\.gradle\\.org/m2/")) then . + {"mirror-urls": [(.url | sub("^https://plugins\\.gradle\\.org/m2/"; "https://maven.aliyun.com/repository/gradle-plugin/"))]} else . end]' + flatpak-sources-central.json > flatpak-sources.json - name: Upload combined Flatpak source artifact