Skip to content

Commit

Permalink
ISOs: simplify Flatpak steps
Browse files Browse the repository at this point in the history
  • Loading branch information
cassidyjames committed Aug 19, 2024
1 parent ea08430 commit cc51e36
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/build_iso.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,27 +62,17 @@ jobs:
run: |
set -euox pipefail
# Make temp space
TEMP_FLATPAK_INSTALL_DIR=$(mktemp -d -p ${{ github.workspace }} flatpak.XXX)
FLATPAK_REFS_DIR=DIR=${{ github.workspace }}/flatpak
mkdir -p "${FLATPAK_REFS_DIR}"
mv flatpaks.txt "${FLATPAK_REFS_DIR_ABS}/flatpaks.txt"
# Read the list of Flatpak refs
FLATPAK_REFS=()
while IFS= read -r line; do
FLATPAK_REFS+=("$line")
done < <(cat "${FLATPAK_REFS_DIR}/core.txt" "${FLATPAK_REFS_DIR}/incubator.txt" "${FLATPAK_REFS_DIR}/circle.txt")
# Generate install script
FLATPAK_REFS_DIR=${{ github.workspace }}/flatpak
FLATPAK_REFS=$(cat core.txt incubator.txt circle.txt)
cat << EOF > ${TEMP_FLATPAK_INSTALL_DIR}/script.sh
cat /temp_flatpak_install_dir/script.sh
mkdir -p /flatpak/flatpak /flatpak/triggers
mkdir /var/tmp || true
chmod -R 1777 /var/tmp
flatpak config --system --set languages "*"
flatpak remote-add --system flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak install --system --noninteractive flathub ${FLATPAK_REFS[@]}
flatpak install --system --noninteractive flathub ${FLATPAK_REFS}
ostree refs --repo=\${FLATPAK_SYSTEM_DIR}/repo | grep '^deploy/' | grep -v 'org\.freedesktop\.Platform\.openh264' | sed 's/^deploy\///g' > /output/flatpaks_with_deps
EOF
docker run --rm --privileged \
Expand Down

0 comments on commit cc51e36

Please sign in to comment.