Add openh264 package URIs as extras
This commit is contained in:
parent
987ccef2af
commit
a92c810463
@ -59,7 +59,7 @@ We also provide a script to generate an [Asahi Installer](https://github.com/Asa
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Install prerequsites
|
# Install prerequsites
|
||||||
[]$ dnf --assumeyes install fatcat gawk util-linux zip
|
[]$ dnf --assumeyes install fatcat gawk rpmdistro-repoquery util-linux zip
|
||||||
# Build the package
|
# Build the package
|
||||||
[]$ ./make-asahi-installer-package.sh outdir/Fedora-Asahi-Remix.aarch64-0.0.0.raw package.zip
|
[]$ ./make-asahi-installer-package.sh outdir/Fedora-Asahi-Remix.aarch64-0.0.0.raw package.zip
|
||||||
```
|
```
|
||||||
|
@ -15,6 +15,19 @@ requireCommands() {
|
|||||||
done
|
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'
|
release='rawhide'
|
||||||
if [ -f buildver ]; then
|
if [ -f buildver ]; then
|
||||||
date="$(cat buildver)"
|
date="$(cat buildver)"
|
||||||
@ -69,6 +82,8 @@ pushd "${workdir}/package" > /dev/null
|
|||||||
7z a -tzip -r "${basedir}/${package}" .
|
7z a -tzip -r "${basedir}/${package}" .
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
|
|
||||||
|
openh264_rpms=$(rpmdistro-repoquery fedora "$release" gstreamer1-plugin-openh264 mozilla-openh264 openh264 --location)
|
||||||
|
|
||||||
cat > "${package}.json" <<EOF
|
cat > "${package}.json" <<EOF
|
||||||
{
|
{
|
||||||
"name": "Fedora Linux ${pretty_release}",
|
"name": "Fedora Linux ${pretty_release}",
|
||||||
@ -78,6 +93,7 @@ cat > "${package}.json" <<EOF
|
|||||||
"package": "${package}.zip",
|
"package": "${package}.zip",
|
||||||
"icon": "fedora.icns",
|
"icon": "fedora.icns",
|
||||||
"supported_fw": ["13.5"],
|
"supported_fw": ["13.5"],
|
||||||
|
"extras": $(printf '%s\n' "$openh264_rpms" | newlineToJson),
|
||||||
"partitions": [
|
"partitions": [
|
||||||
{
|
{
|
||||||
"name": "EFI",
|
"name": "EFI",
|
||||||
|
Loading…
Reference in New Issue
Block a user