mirror of
https://github.com/RetroDECK/net.rpcs3.RPCS3.git
synced 2024-11-25 09:35:38 +00:00
fix(rpcs3): adapt to latest changes in upstream metadata file
This commit is contained in:
parent
599bde9314
commit
4ad89799bd
|
@ -87,12 +87,10 @@ modules:
|
||||||
- |-
|
- |-
|
||||||
set -eux
|
set -eux
|
||||||
|
|
||||||
sed -i 's|<id>RPCS3</id>|<id>net.rpcs3.RPCS3</id>|' ${FLATPAK_DEST}/share/metainfo/rpcs3.metainfo.xml
|
|
||||||
|
|
||||||
COMM_TAG="$(awk -F'[\{,]' '/version{.*}/{printf "%d.%d.%d", $2, $3, $4}' ../rpcs3/rpcs3_version.cpp)"
|
COMM_TAG="$(awk -F'[\{,]' '/version{.*}/{printf "%d.%d.%d", $2, $3, $4}' ../rpcs3/rpcs3_version.cpp)"
|
||||||
COMM_COUNT="$(git rev-list --count HEAD)";
|
COMM_COUNT="$(git rev-list --count HEAD)";
|
||||||
COMM_HASH="$(git rev-parse --short=8 HEAD)";
|
COMM_HASH="$(git rev-parse --short=8 HEAD)";
|
||||||
sed -i 's|</component>|<content_rating type="oars-1.1"/><releases><release date="'$(git show -s --format=%cs)'" version="'"${COMM_TAG}"'-'"${COMM_COUNT}"'-'"${COMM_HASH}"'"/></releases></component>|' ${FLATPAK_DEST}/share/metainfo/rpcs3.metainfo.xml
|
sed -i 's|</component>|<releases><release date="'$(git show -s --format=%cs)'" version="'"${COMM_TAG}"'-'"${COMM_COUNT}"'-'"${COMM_HASH}"'"/></releases></component>|' ${FLATPAK_DEST}/share/metainfo/rpcs3.metainfo.xml
|
||||||
sources:
|
sources:
|
||||||
- type: git
|
- type: git
|
||||||
url: https://github.com/RPCS3/rpcs3.git
|
url: https://github.com/RPCS3/rpcs3.git
|
||||||
|
|
Loading…
Reference in a new issue