LOK runs on Windows and Linux; packaging stages engines (W-01, K-01)
The kernel is the merged library on every platform; Windows and Linux find it beside the app in libreoffice/program. All three run unipoll: macOS through GCD, Linux by answering one request per poll, Windows through a message-only window on the loop's thread (LOK's own main thread had deadlocked Calc loads). Patch 0043 flushes callbacks inline everywhere, so a request sees its result; 0042 stops MSVC's Boost auto-link. Linux paints with cairo, BGRA; the start-up check now paints red text and finds red in byte two on every platform, since getTileMode does not see Skia. ely-lok on Windows: 180 of 189 pass; on Linux 187. The rest are listed after 0.1.3 (spelling, Calc dark tiles, show layers and fields, a11y selection). Tests build file URLs portably and accept CRLF where Windows writes it. packaging/stage.sh lays out an app with its engines for Windows and Linux; licenses.sh finds each licence on all three. ElyMark finds its page beside the app. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
dc4c1ed0fe
commit
c96d39a342
34 files changed
+658
-214
No files matched your search
@@ -4,6 +4,7 @@
|
||||
import datetime
|
||||
import math
|
||||
import posixpath
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
import subprocess
|
||||
@@ -255,12 +256,14 @@ def selftest(case, path):
|
||||
missed.append(f"{part}: {pattern} found nothing to change")
|
||||
continue
|
||||
entries[part] = changed.encode()
|
||||
with tempfile.NamedTemporaryFile(suffix=path[-5:]) as copy:
|
||||
with zipfile.ZipFile(copy.name, "w") as archive:
|
||||
# A folder, not an open file: Windows cannot reopen those.
|
||||
with tempfile.TemporaryDirectory() as folder:
|
||||
copy = os.path.join(folder, "mutated" + path[-5:])
|
||||
with zipfile.ZipFile(copy, "w") as archive:
|
||||
for name, body in entries.items():
|
||||
archive.writestr(name, body)
|
||||
failures = []
|
||||
CASES[case](copy.name)
|
||||
CASES[case](copy)
|
||||
if not failures:
|
||||
missed.append(f"{part}: {pattern} passed")
|
||||
failures = [f"a mutation went unnoticed: {what}" for what in missed]
|
||||
|
||||
Reference in new issue
Block a user