[FL-2052] New build system based on scons (#1269)
This commit is contained in:
23
site_scons/fbt/version.py
Normal file
23
site_scons/fbt/version.py
Normal file
@@ -0,0 +1,23 @@
|
||||
import subprocess
|
||||
import datetime
|
||||
|
||||
|
||||
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)
|
Reference in New Issue
Block a user