diff --git a/README.md b/README.md index e6ac9be..d401c2d 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ We also provide a script to generate an [Asahi Installer](https://github.com/Asa ```bash # Install prerequsites -[]$ dnf --assumeyes install fatcat gawk util-linux zip +[]$ dnf --assumeyes install fatcat gawk rpmdistro-repoquery util-linux zip # Build the package []$ ./make-asahi-installer-package.sh outdir/Fedora-Asahi-Remix.aarch64-0.0.0.raw package.zip ``` diff --git a/make-asahi-installer-package.sh b/make-asahi-installer-package.sh index 7db9626..c70ed08 100755 --- a/make-asahi-installer-package.sh +++ b/make-asahi-installer-package.sh @@ -15,6 +15,19 @@ requireCommands() { done } +newlineToJson() { + first_item=true + printf '[' + while IFS= read -r line; do + if [ "$first_item" = false ]; then + printf ', ' + fi + printf '"%s"' "$line" + first_item=false + done + printf ']\n' +} + release='rawhide' if [ -f buildver ]; then date="$(cat buildver)" @@ -69,6 +82,8 @@ pushd "${workdir}/package" > /dev/null 7z a -tzip -r "${basedir}/${package}" . popd > /dev/null +openh264_rpms=$(rpmdistro-repoquery fedora "$release" gstreamer1-plugin-openh264 mozilla-openh264 openh264 --location) + cat > "${package}.json" < "${package}.json" <