mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-05 06:53:18 +08:00
Testing bless process
This commit is contained in:
parent
5565b4bfa5
commit
b53701085c
@ -595,9 +595,11 @@ def lazy_increment_build() -> None:
|
|||||||
lasthash = ''
|
lasthash = ''
|
||||||
if codehash != lasthash:
|
if codehash != lasthash:
|
||||||
print(f'{Clr.SMAG}Source(s) changed; incrementing build...{Clr.RST}')
|
print(f'{Clr.SMAG}Source(s) changed; incrementing build...{Clr.RST}')
|
||||||
subprocess.run(['tools/version_utils', 'incrementbuild'], check=True)
|
|
||||||
|
|
||||||
# We just changed code, so we need to re-calc the current hash.
|
# Just go ahead and bless; this will increment the build as needed.
|
||||||
|
subprocess.run(['make', 'bless'], check=True)
|
||||||
|
|
||||||
|
# We probably just changed code, so we need to re-calc the hash.
|
||||||
codehash = get_files_hash(codefiles)
|
codehash = get_files_hash(codefiles)
|
||||||
os.makedirs(os.path.dirname(hashfilename), exist_ok=True)
|
os.makedirs(os.path.dirname(hashfilename), exist_ok=True)
|
||||||
with open(hashfilename, 'w') as outfile:
|
with open(hashfilename, 'w') as outfile:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user