Prepare game 0.2.0 and standalone editor 0.5.0 releases (by Codex)
OBW Editor / editor (linux-x64, ubuntu-24.04) (push) Canceled after 0s
OBW Editor / editor (macos-arm64, macos-14) (push) Canceled after 0s
OBW Editor / editor (windows-x64, windows-2022) (push) Canceled after 0s
OBW Editor / release (push) Canceled after 0s
Build without game data / build (windows-x64, windows-2022) (push) Canceled after 0s
Build without game data / build (macos-arm64, macos-14) (push) Canceled after 0s
Build without game data / build (linux-x64, ubuntu-24.04) (push) Canceled after 0s
Prepare release packages / build (push) Canceled after 0s
Prepare release packages / draft (push) Canceled after 0s

This commit is contained in:
Codex committed 2026-10-22 23:32:54 +02:00
1 parent 6636308cad
commit a447d9282a
22 files changed
+185 -38

No files matched your search

+13 -7
View File
@@ -8,6 +8,7 @@ import argparse
import hashlib
import json
from pathlib import Path
import re
import shutil
import subprocess
import tempfile
@@ -74,7 +75,10 @@ def main():
source, build = args.source.resolve(), args.build.resolve()
args.out.mkdir(parents=True, exist_ok=True)
commit = git(source, 'rev-parse', 'HEAD').decode().strip()
name = 'OpenBMHEditor-poc-' + args.platform
version = json.loads((build / 'editor-version.json').read_text())['version']
if not re.fullmatch(r'\d+\.\d+\.\d+', version):
raise RuntimeError('Invalid editor version')
name = 'OpenBMHEditor-' + version + '-' + args.platform
with tempfile.TemporaryDirectory(prefix='editor-package-') as td:
stage = Path(td) / name; stage.mkdir()
exe = 'OpenBMHEditor.exe' if args.platform.startswith('windows') else 'OpenBMHEditor'
@@ -84,13 +88,14 @@ def main():
for file in ('LICENSE', 'THIRD_PARTY_NOTICES.md'):
shutil.copy2(source / file, stage / file)
shutil.copy2(source / 'docs/EDITOR.md', stage / 'EDITOR.md')
shutil.copy2(source / 'docs/release/editor-0.5/RELEASE_NOTES.md', stage / 'RELEASE_NOTES.md')
if args.platform.startswith('windows'):
# Uses the same app-local CRT/UCRT installation as the main game.
# A successful runner launch alone does not prove deployability.
for dll in ('vcruntime140.dll', 'msvcp140.dll'):
if not (stage / dll).is_file():
raise RuntimeError('Required Windows runtime missing: ' + dll)
(stage / 'BUILD.json').write_text(json.dumps({'commit': commit, 'platform': args.platform,
(stage / 'BUILD.json').write_text(json.dumps({'commit': commit, 'platform': args.platform, 'version': version,
'editor_profile': 'editor-world-v1', 'game_data_included': False}, indent=2) + '\n')
zip_tree(stage, args.out / (name + '.zip'))
print(args.out / (name + '.zip'))
@@ -99,9 +104,10 @@ def main():
**json.loads((build / 'editor-dependencies.json').read_text())}
components = {**{n: (v[0], v[1]) for n, v in COMPONENTS.items()}, **EXTRA}
with tempfile.TemporaryDirectory(prefix='editor-source-') as td:
stage = Path(td) / 'OpenBMHEditor-poc-source'; stage.mkdir()
source_name = 'OpenBMHEditor-' + version + '-source'
stage = Path(td) / source_name; stage.mkdir()
project = [Path(f.decode()) for f in git(source, 'ls-files', '-z').split(b'\0') if f]
manifest = {'project_commit': commit, 'project_files': copy_files(source, stage / 'project', project, required=True), 'dependencies': {}}
manifest = {'project_commit': commit, 'editor_version': version, 'project_files': copy_files(source, stage / 'project', project, required=True), 'dependencies': {}}
cache = ['set(OPENBMH_BUILD_EDITOR ON CACHE BOOL "" FORCE)']
for name, (ref, url) in components.items():
result = copy_dependency(Path(deps[name]), stage / 'dependencies' / name, name, ref)
@@ -111,10 +117,10 @@ def main():
(stage / 'SOURCE_MANIFEST.json').write_text(json.dumps(manifest, indent=2) + '\n')
(stage / 'BUILD_SOURCE.txt').write_text('cmake -S project -B build -C dependencies.cmake -G Ninja -DCMAKE_BUILD_TYPE=Release\n'
'cmake --build build --target openbmh_editor editor_core_tests\n'
'ctest --test-dir build -R ^editor_core_tests$ --output-on-failure\n'
'ctest --test-dir build -R "^editor_(core_tests|version)$" --output-on-failure\n'
'Native compiler, CMake and OS development libraries: see project/docs/EDITOR.md.\n')
zip_tree(stage, args.out / 'OpenBMHEditor-poc-source.zip')
print(args.out / 'OpenBMHEditor-poc-source.zip')
zip_tree(stage, args.out / (source_name + '.zip'))
print(args.out / (source_name + '.zip'))
if __name__ == '__main__':
@@ -48,6 +48,7 @@ PROJECT_ARTWORK = {
"docs/qa/editor-poc/clubs-midnight-de.png": {
"2921aa67a870633c96f46328a82bc3022e5489b38d551c5314f13c7e59446070",
"aa53e9cdd9ac8f6bf18b514862ac704ff9003bd1b62466cad2ebc329b09703dc",
"ace9a5d491994592d4e87e8e1bce10af648a9c307645ace2f188c11d2b4f2fea",
},
"docs/qa/editor-poc/gui-search.png": {
"48dc00d03c01d5bbec35683ff65672c12af4be6aecc8a84e5fece243c56643f4",
@@ -74,6 +75,7 @@ PROJECT_ARTWORK = {
"fb8e5f1f86afe60de87b70a2f533690d1ef470241fa24ee4384ff000149edaab",
},
"docs/qa/editor-poc/clubs-silver-de.png": {
"3e557f68bf8d0e8186dc237f9e92f6b9c7743d7df79fd29c3a5838ba01c116f2",
"4f5dbe76b86097d306d2c982ce48093cce0fc95e9f35853493779b3116399239",
},
"docs/qa/editor-poc/options-silver-de.png": {
@@ -83,6 +85,7 @@ PROJECT_ARTWORK = {
"8d6ead6fd0e2fddc8e23de0a71abe519fa4f19ede0676823892d2568481bf68c",
},
"docs/qa/editor-poc/clubs-matchday-de.png": {
"ddc5461068bdff4c0e3b468315cf03ef7cd203354941c586c030d3f3e80ae6ef",
"e74d0b9acd07f6a48537616c28d74e53b8f69e20bb15fc3f6fcd0c10484b4f58",
},
"docs/qa/editor-poc/options-matchday-de.png": {