Skip to content

Commit

Permalink
metainfo: insert release urgency from script
Browse files Browse the repository at this point in the history
For more information about possible values, see:
  - https://lvfs.readthedocs.io/en/latest/metainfo.html#release-urgency-values

Change-Id: I56b125331053ef787aadd748ce5ef95380641404
Signed-off-by: Alexander Martinz <[email protected]>
  • Loading branch information
amartinz committed Oct 6, 2022
1 parent 4afb98f commit a5c8f68
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion generate-cab-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ OUTPUT_DIRECTORY="output"

###############################
# Image information (edit this)
IMAGE_URGENCY="high"
IMAGE_DATE="2022-10-06"
IMAGE_URL="https://gitlab.shift-gmbh.com/ShiftOSS/android_proprietary_vendor_firmware/-/raw/85d96c00f15ad30b382c7fb237ed019212549d98/axolotl/radio/abl.img"
IMAGE_VERSION="3.9.20221006"
Expand Down Expand Up @@ -54,13 +55,15 @@ awk \
-v DATE="${IMAGE_DATE}" \
-v SHA1="${SHA1}" \
-v SHA256="${SHA256}" \
-v DESCRIPTION="${IMAGE_DESCRIPTION}" '{
-v DESCRIPTION="${IMAGE_DESCRIPTION}" \
-v URGENCY="${IMAGE_URGENCY}" '{
sub(/SCRIPT_MARKER_FILENAME/, IMAGE_FILE);
sub(/SCRIPT_MARKER_VERSION/, VERSION);
sub(/SCRIPT_MARKER_DATE/, DATE);
sub(/SCRIPT_MARKER_SHA1/, SHA1);
sub(/SCRIPT_MARKER_SHA256/, SHA256);
sub(/SCRIPT_MARKER_DESCRIPTION/, DESCRIPTION);
sub(/SCRIPT_MARKER_URGENCY/, URGENCY);
print;
}' "${METAINFO_TEMPLATE}" > "${OUTPUT_DIRECTORY}/${OUTPUT_METAINFO_FILE}"

Expand Down
2 changes: 1 addition & 1 deletion metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<metadata_license>CC0-1.0</metadata_license>
<project_license>proprietary</project_license>
<releases>
<release urgency="high" version="SCRIPT_MARKER_VERSION" date="SCRIPT_MARKER_DATE" install_duration="120">
<release urgency="SCRIPT_MARKER_URGENCY" version="SCRIPT_MARKER_VERSION" date="SCRIPT_MARKER_DATE" install_duration="120">
<checksum type="sha1" filename="SCRIPT_MARKER_FILENAME" target="content">SCRIPT_MARKER_SHA1</checksum>
<checksum type="sha256" filename="SCRIPT_MARKER_FILENAME" target="content">SCRIPT_MARKER_SHA256</checksum>
<url type="source">https://github.com/SHIFTPHONES/android_bootable_bootloader_edk2</url>
Expand Down

0 comments on commit a5c8f68

Please sign in to comment.