Import current DEMON v0.19 source, assets and development handoff

This commit is contained in:
JariKo
2026-10-28 15:39:06 +02:00
commit 2b9ae06592
347 changed files with 14404 additions and 0 deletions
+44
View File
@@ -0,0 +1,44 @@
from pathlib import Path
import hashlib,json,shutil,zipfile
root=Path(__file__).resolve().parent.parent
src=root/'Demon_v0.18.1';win=root/'Demon_v0.18.1_Windows';qa=root/'qa_v181'
markers={
'release-posture.log':'ALL POSTURE TESTS PASSED',
'release-gait.log':'ALL GAIT TESTS PASSED',
'release-tests.log':'ALL WORKSHOP TESTS PASSED',
'release-ui.log':'PASS: actual mouse input',
'release-sentences.log':'ALL SENTENCE TESTS PASSED',
'release-capture.log':'POSTURE_CAPTURE_BUILD:',
'probe.log':'BUILD_PROBE:',
}
for name,marker in markers.items():
log=(qa/name).read_text(encoding='utf-8-sig')
assert marker in log,name
assert not any(s in log for s in ['ERROR:','Assertion failed','QA check failed']),name
probe=json.loads(next(s.split('BUILD_PROBE: ',1)[1] for s in (qa/'probe.log').read_text(encoding='utf-8-sig').splitlines() if 'BUILD_PROBE: ' in s))
assert probe['version']=='0.18.1' and probe['id']!='0.18.1-editor'
assert 'POSTURE_CAPTURE_BUILD: '+probe['id'] in (qa/'release-capture.log').read_text(encoding='utf-8-sig')
def sha(p):return hashlib.sha256(p.read_bytes()).hexdigest()
for name in ['README_RU.md','VISUAL_REFERENCES.md','AUDIO_CREDITS.md','MODEL_CREDITS.md','MODEL_LICENSE_CC0.txt','GODOT_LICENSE.txt']:
shutil.copy2(src/name,win/name)
for name in ['KellySlab-OFL.txt','RuslanDisplay-OFL.txt']:shutil.copy2(src/'art/fonts'/name,win/name)
(win/'QA').mkdir(exist_ok=True)
for name in markers:shutil.copy2(qa/name,win/'QA'/name)
(src/'captures/v0181').mkdir(parents=True,exist_ok=True)
for shot in (win/'captures/v0181').glob('*.png'):shutil.copy2(shot,src/'captures/v0181'/shot.name)
manifest={'version':'0.18.1','build_id':probe['id'],'engine':'Godot 4.3.stable.official.77dcf97d8','binary_sha256':sha(win/'Demon.exe'),'fix':'Restore sampled animation pose before procedural gait; remove accumulating lateral bone rotation','validation':{'release_posture':'passed','release_gait':'passed','release_gameplay':'passed','release_mouse_ui':'passed','release_sentences':'passed','release_capture':'passed'},'posture_actors_tested':4,'posture_simulated_seconds':480,'maximum_tested_lateral_tilt_degrees':2}
(win/'BUILD_MANIFEST.json').write_text(json.dumps(manifest,ensure_ascii=False,indent=2),encoding='utf-8')
for folder,label in [(win,'Windows'),(src,'Source')]:
destination=root/f'Demon_v0.18.1_{label}.zip'
with zipfile.ZipFile(destination,'w',zipfile.ZIP_DEFLATED,compresslevel=6) as archive:
for path in sorted(folder.rglob('*')):
if not path.is_file() or '.godot' in path.parts:continue
rel=path.relative_to(folder)
if path.suffix=='.log' and path.parent!=win/'QA':continue
if rel.parts[0]=='captures' and ('v0181' not in rel.parts or path.suffix!='.png'):continue
archive.write(path,Path(folder.name)/rel)
if label=='Source':
for name in ['build_v181.ps1','package_v181.py','fetch_windows_template.py']:archive.write(root/'tools'/name,Path('tools')/name)
with zipfile.ZipFile(destination) as archive:assert archive.testzip() is None
print('VERIFIED',destination.name,destination.stat().st_size,'SHA256',sha(destination))
print('BUILD_ID',probe['id'])