* faploader: more subsystem headers in API table; not counting header entries for SDK version change * subghz: removed dead function * Adjusted API version * hal: removed furi_hal_power_get_system_voltage * lib: mbedtls: additional flags for .fap linkage * fbt: rebuilding assets when git commit id changes * fbt: removed assets rebuild on git commit id change; added explicit dependency for SDK source on compiled assets parts; removed unneeded sdk regeneration runs * fbt: changed stock plugins to EXTERNAL apps; restored building app as a PLUGIN as a part of main fw as well as a .fap; readme fixes * fbt: restored certain apps to PLUGIN type * fbt: app manifests: renamed version->fap_version, added extra fields * fbt: fixed version processing after rename Co-authored-by: あく <alleteam@gmail.com>
		
			
				
	
	
		
			26 lines
		
	
	
		
			579 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			579 B
		
	
	
	
		
			Python
		
	
	
	
	
	
import subprocess
 | 
						|
import datetime
 | 
						|
from functools import cache
 | 
						|
 | 
						|
 | 
						|
@cache
 | 
						|
def get_fast_git_version_id():
 | 
						|
    try:
 | 
						|
        version = (
 | 
						|
            subprocess.check_output(
 | 
						|
                [
 | 
						|
                    "git",
 | 
						|
                    "describe",
 | 
						|
                    "--always",
 | 
						|
                    "--dirty",
 | 
						|
                    "--all",
 | 
						|
                    "--long",
 | 
						|
                ]
 | 
						|
            )
 | 
						|
            .strip()
 | 
						|
            .decode()
 | 
						|
        )
 | 
						|
        return (version, datetime.date.today())
 | 
						|
    except Exception as e:
 | 
						|
        print("Failed to check for git changes", e)
 |