添加构建时间
This commit is contained in:
10
utils/hook.py
Normal file
10
utils/hook.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from datetime import datetime
|
||||
|
||||
|
||||
def gen_build_time():
|
||||
with open('build_info.py', 'w', encoding='utf-8') as f:
|
||||
f.write(f"# Auto-generated build info\n")
|
||||
f.write(f"BUILD_TIME = '{datetime.now().isoformat(sep=' ', timespec='seconds')}'\n")
|
||||
|
||||
|
||||
gen_build_time()
|
||||
Reference in New Issue
Block a user