Fix CI smoke test compile scope and PE fixture size.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-13 17:24:46 +03:00
Unverified
parent 70937efca6
commit 7879ae681d
5 changed files with 3 additions and 7 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ for name, machine in [
("FromChat-Setup-9.9.9-windows-arm64.exe", 0xAA64),
]:
path = root / name
data = bytearray(0x40)
data = bytearray(0x80)
struct.pack_into("<I", data, 0x3C, 0x40)
struct.pack_into("<H", data, 0x44, machine)
path.write_bytes(data)
-2
View File
@@ -5,7 +5,5 @@ set -euo pipefail
:app:shared:compileKotlinJvm \
:utils:shared:compileKotlinJvm \
:app:desktop:compileKotlin \
:app:shared:compileAndroidMain \
:app:android:compileReleaseKotlin \
--no-daemon \
--console=plain
+1 -1
View File
@@ -38,7 +38,7 @@ pe_machine() {
import struct, sys
path = sys.argv[1]
with open(path, "rb") as f:
data = f.read(0x40)
data = f.read(0x80)
pe_off = struct.unpack_from("<I", data, 0x3C)[0]
machine = struct.unpack_from("<H", data, pe_off + 4)[0]
print(machine)