mirror of
https://github.com/fromchat-messenger/app.git
synced 2026-09-22 19:15:05 +03:00
Fix CI smoke test compile scope and PE fixture size.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -24,7 +24,6 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ./.github/actions/setup-java-gradle
|
||||
- uses: android-actions/setup-android@v3
|
||||
- run: bash scripts/ci-test-compile.sh
|
||||
|
||||
test-rust:
|
||||
|
||||
@@ -52,11 +52,10 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ./.github/actions/setup-java-gradle
|
||||
- uses: android-actions/setup-android@v3
|
||||
- uses: ./.github/actions/set-version
|
||||
with:
|
||||
version: ${{ needs.resolve-version.outputs.version }}
|
||||
- name: Compile JVM and Android release sources
|
||||
- name: Compile JVM release sources
|
||||
run: bash scripts/ci-test-compile.sh
|
||||
|
||||
test-rust:
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user