Add build scripts and API calls for WebUI

This commit is contained in:
Djuri 2024-03-17 02:15:59 +01:00
parent d46b07399f
commit 59c9bf4477
11 changed files with 141 additions and 35 deletions

8
scripts/git_rev.py Normal file
View file

@ -0,0 +1,8 @@
import subprocess
revision = (
subprocess.check_output(["git", "rev-parse", "HEAD"])
.strip()
.decode("utf-8")
)
print("'-DGIT_REV=\"%s\"'" % revision)