Skip to content

Commit 0caf92d

Browse files
authored
feat: centralized flatpaks list (#2904)
1 parent ef1014e commit 0caf92d

13 files changed

Lines changed: 11 additions & 52 deletions

.github/workflows/build-image-gts.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ on:
77
paths-ignore:
88
- ".github/workflows/*iso*"
99
- "**.md"
10-
- "bluefin_flatpaks/**"
11-
- "dx_flatpaks/**"
10+
- "flatpaks/**"
1211
- "iso_files/**"
1312
schedule:
1413
- cron: "50 5 * * 0" # 5:50 UTC Weekly on Sundays

.github/workflows/build-image-latest-hwe.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ on:
88
paths-ignore:
99
- ".github/workflows/*iso*"
1010
- "**.md"
11-
- "bluefin_flatpaks/**"
12-
- "dx_flatpaks/**"
11+
- "flatpaks/**"
1312
- "iso_files/**"
1413
workflow_call:
1514
workflow_dispatch:

.github/workflows/build-image-latest-main.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ on:
88
paths-ignore:
99
- '.github/workflows/*iso*'
1010
- '**.md'
11-
- 'bluefin_flatpaks/**'
12-
- 'dx_flatpaks/**'
11+
- 'flatpaks/**'
1312
- 'iso_files/**'
1413
workflow_call:
1514
workflow_dispatch:

.github/workflows/build-image-stable.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ on:
88
paths-ignore:
99
- ".github/workflows/*iso*"
1010
- "**.md"
11-
- "bluefin_flatpaks/**"
12-
- "dx_flatpaks/**"
11+
- "flatpaks/**"
1312
- "iso_files/**"
1413
schedule:
1514
- cron: "50 5 * * 0" # 5:50 UTC sunday

.github/workflows/reusable-build-iso-anaconda.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
uses: ublue-os/titanoboa@main
8989
with:
9090
image-ref: ${{ steps.image_ref.outputs.image_ref }}:${{ matrix.image_version }}
91-
flatpaks-list: ${{ github.workspace }}/iso_files/system-flatpaks.list
91+
flatpaks-list: ${{ github.workspace }}/flatpaks/system-flatpaks.list
9292
hook-post-rootfs: ${{ github.workspace }}/iso_files/configure_iso_anaconda.sh
9393
kargs: ${{ steps.image_ref.outputs.kargs }}
9494

.github/workflows/reusable-build-iso-readymade.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
uses: ublue-os/titanoboa@main
9191
with:
9292
image-ref: ${{ steps.image_ref.outputs.image_ref }}:${{ matrix.image_version }}
93-
flatpaks-list: ${{ github.workspace }}/iso_files/system-flatpaks.list
93+
flatpaks-list: ${{ github.workspace }}/flatpaks/system-flatpaks.list
9494
hook-post-rootfs: ${{ github.workspace }}/iso_files/configure_iso.sh
9595
kargs: ${{ steps.image_ref.outputs.kargs }}
9696

Containerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ FROM scratch AS ctx
77
COPY /system_files /system_files
88
COPY /build_files /build_files
99
COPY /iso_files /iso_files
10+
COPY /flatpaks /flatpaks
1011
COPY /just /just
1112
COPY packages.json /
1213

Justfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -519,20 +519,20 @@ build-iso $image="bluefin" $tag="latest" $flavor="main" ghcr="0" pipeline="0":
519519
rm -rf "${COPYTMP}"
520520
fi
521521

522-
FLATPAK_DIR_SHORTNAME="bluefin_flatpaks"
522+
FLATPAK_DIR_SHORTNAME="flatpaks"
523523

524524
# Generate Flatpak List
525525
TEMP_FLATPAK_INSTALL_DIR="$(mktemp -d -p /tmp flatpak-XXXXX)"
526526
flatpak_refs=()
527527
while IFS= read -r line; do
528528
flatpak_refs+=("$line")
529-
done < "${FLATPAK_DIR_SHORTNAME}/flatpaks"
529+
done < "${FLATPAK_DIR_SHORTNAME}/system-flatpaks.list"
530530

531531
# Add DX Flatpaks if needed
532532
if [[ "${image_name}" =~ dx ]]; then
533533
while IFS= read -r line; do
534534
flatpak_refs+=("$line")
535-
done < "dx_flatpaks/flatpaks"
535+
done < "flatpaks/system-flatpaks-dx.list"
536536
fi
537537

538538
echo "Flatpak refs: ${flatpak_refs[@]}"

build_files/shared/build-base.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ echo "::endgroup::"
1414
echo "::group:: Copy Files"
1515

1616
# Copy ISO list for `install-system-flaptaks`
17-
install -Dm0644 -t /etc/ublue-os/ /ctx/iso_files/*.list
17+
install -Dm0644 -t /etc/ublue-os/ /ctx/flatpaks/*.list
1818

1919
# Copy Files to Container
2020
cp -r /ctx/just /tmp/just

0 commit comments

Comments
 (0)