@@ -32,24 +32,30 @@ modules:
3232
3333 - name : scantailor-advanced
3434 sources :
35- - type : archive
36- url : https://github.com/4lex4/scantailor-advanced/archive/refs/tags/2019.8.16_EA.tar.gz
37- sha256 : 7ee3aaffa9a234a3171d3d0d75bc34a6acc7e78f85f5a70d6cf7ae481c8d1a48
35+ - type : git
36+ url : https://github.com/4lex4/scantailor-advanced.git
37+ tag : 2019.8.16_EA
38+ commit : c5eba3933f7e47fde753a8d51cd6ee2ff3d9954e
3839 x-checker-data :
3940 type : json
4041 url : https://api.github.com/repos/4lex4/scantailor-advanced/releases
41- version-query : ' [.[] | select(.draft == false and .prerelease == true)][0].tag_name'
42- url-query : ' "https://github.com/4lex4/scantailor-advanced/archive/refs/tags/" + $version + ".tar.gz"'
42+ tag-query : ' [.[] | select(.draft == false and .prerelease == true)][0].tag_name'
4343 - type : file
44- path : com.github._4lex4.ScanTailor-Advanced.metainfo.xml
44+ path : com.github._4lex4.ScanTailor-Advanced.metainfo.xml.in
4545 - type : patch
4646 path : scantailor-qt5.15.patch
4747 buildsystem : cmake-ninja
4848 builddir : true
4949 config-opts :
5050 - -DCMAKE_BUILD_TYPE=RelWithDebInfo
5151 post-install :
52- - install -Dm0644 -t /app/share/metainfo ../com.github._4lex4.ScanTailor-Advanced.metainfo.xml
52+ - |
53+ # Set version and release data in our custom Metainfo and install it
54+ set -e
55+ version="$(git describe --tags --exact-match)"
56+ date="$(git log -1 --date=short --format=%cd)"
57+ sed -e "s/{RELEASE_VERSION}/${version}/g" -e "s/{RELEASE_DATE}/${date}/g" ../com.github._4lex4.ScanTailor-Advanced.metainfo.xml.in >com.github._4lex4.ScanTailor-Advanced.metainfo.xml
58+ install -Dm0644 -t /app/share/metainfo com.github._4lex4.ScanTailor-Advanced.metainfo.xml
5359 - mv /app/share/mime/packages/scantailor-project.xml /app/share/mime/packages/com.github._4lex4.ScanTailor-Advanced.xml
5460 - |
5561 for res in 16 32 48 64 128 256 512; do
0 commit comments