enhance metainfo XML file cmake integration, remove now redundant git hook
This commit is contained in:
		
							parent
							
								
									6d4ebac4da
								
							
						
					
					
						commit
						714d1998ba
					
				
					 3 changed files with 3 additions and 19 deletions
				
			
		|  | @ -58,6 +58,7 @@ cmake_minimum_required(VERSION 3.9.0) | ||||||
| 
 | 
 | ||||||
| # Global variables describing the project. | # Global variables describing the project. | ||||||
| string(TIMESTAMP YEAR "%Y") | string(TIMESTAMP YEAR "%Y") | ||||||
|  | string(TIMESTAMP DATE "%Y-%m-%d") | ||||||
| 
 | 
 | ||||||
| set(APP_NAME "RSS Guard") | set(APP_NAME "RSS Guard") | ||||||
| set(APP_EMAIL "rotter.martinos@gmail.com") | set(APP_EMAIL "rotter.martinos@gmail.com") | ||||||
|  |  | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| <?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||||||
| <!-- Copyright 2017-2022 Martin Rotter <rotter.martinos@gmail.com> --> | <!-- Copyright 2017-@YEAR@ Martin Rotter <rotter.martinos@gmail.com> --> | ||||||
| <component type="desktop-application"> | <component type="desktop-application"> | ||||||
|   <id>@APP_REVERSE_NAME@</id> |   <id>@APP_REVERSE_NAME@</id> | ||||||
|   <metadata_license>CC0-1.0</metadata_license> |   <metadata_license>CC0-1.0</metadata_license> | ||||||
|  | @ -60,7 +60,7 @@ | ||||||
|   <content_rating type="oars-1.0" /> |   <content_rating type="oars-1.0" /> | ||||||
|   <content_rating type="oars-1.1" /> |   <content_rating type="oars-1.1" /> | ||||||
|   <releases> |   <releases> | ||||||
|     <release version="4.2.7" date="2023-01-10" /> |     <release version="@APP_VERSION@" date="@DATE@" /> | ||||||
|   </releases> |   </releases> | ||||||
|   <provides> |   <provides> | ||||||
|     <binary>@APP_LOW_NAME@</binary> |     <binary>@APP_LOW_NAME@</binary> | ||||||
|  |  | ||||||
|  | @ -1,17 +0,0 @@ | ||||||
| #!/bin/sh |  | ||||||
| 
 |  | ||||||
| changelog_file="resources/text/CHANGELOG" |  | ||||||
| datestring="$(date +%F)" |  | ||||||
| versionstring="$(head -n 1 "$changelog_file")" |  | ||||||
| 
 |  | ||||||
| for appdata_file in resources/desktop/*.metainfo.xml.in; do |  | ||||||
|   appdata_file_n="${appdata_file}.n" |  | ||||||
| 
 |  | ||||||
|   # Set version and date. |  | ||||||
|   cat "$appdata_file" | sed -e "s@release version\=\"[A-Za-z0-9.]*\"@release version\=\"$versionstring\"@g" | sed -e "s@ date\=\"[0-9\-]*\"@ date\=\"$datestring\"@g" > "$appdata_file_n" |  | ||||||
|   mv "$appdata_file_n" "$appdata_file" |  | ||||||
| 
 |  | ||||||
|   git add "$appdata_file" |  | ||||||
| done |  | ||||||
| 
 |  | ||||||
| exit 0 |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue