Fix shell packaging (issue #1): drop stale prefetch list, clearer pack error; sync with trunk
This commit is contained in:
@@ -869,6 +869,8 @@ if NAME == 'main':
|
||||
BL = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'data', f'bootlist_{BUILD_ID}.tsv')
|
||||
if not os.path.isfile(BL): # 公开仓库不带这份清单(它每行带原版资源块的开头字节):没有就不预取,启动时少一步提前解码,别的不受影响 | the public repository does not ship this list (each line carries the first bytes of an original resource block): without it there is no prefetch, so launch skips one ahead-of-time decode step and nothing else is affected
|
||||
print('bootlist 没有启动块清单,跳过(不预取)。要用的话自己录一份:dm/tools/tact_bootlist.py')
|
||||
for n in ('bootlist.tsv', 'bootlist.sha256'): # 产物目录里以前留下的也去掉:留着会被当成这一次的产物带进安装包和壳的清单 | Leftovers from earlier runs in the build output directory are removed too: if kept they would be taken as outputs of this run and carried into the install package and the shell manifest
|
||||
if os.path.exists(os.path.join(outdir, n)): os.remove(os.path.join(outdir, n))
|
||||
else:
|
||||
hd = open(BL, encoding='utf-8').readline().split()
|
||||
if hd[-1:] != [BUILD_ID]: sys.exit(f'【红】{BL} 头行构建号 {hd[-1:]} 与 main {BUILD_ID} 不符')
|
||||
|
||||
Reference in New Issue
Block a user