Rework workflows and add devbuilds

This commit is contained in:
Willy-JL
2023-07-20 02:00:09 +01:00
parent f951eb5541
commit 49e6554acd
8 changed files with 107 additions and 45 deletions

View File

@@ -1,6 +1,6 @@
from pathlib import Path
import subprocess
import posixpath
import datetime
# For more details on these options, run 'fbt -h'
@@ -19,7 +19,7 @@ DEBUG = 0
# If OS environment has DIST_SUFFIX set, it will be used instead
# How about we add the timestamp automatically. Solves some problems
DIST_SUFFIX = f"XFW-0049_{datetime.datetime.today().strftime('%d%m%Y')}"
DIST_SUFFIX = f"XFW-DEV_@{subprocess.check_output(['git', 'rev-parse', '--short=7', 'HEAD']).decode().strip().upper()}"
# Coprocessor firmware
COPRO_OB_DATA = "scripts/ob.data"