fix(build): make the Kotlin build work on Windows

Node cannot hand gradlew.bat to CreateProcess (EINVAL); run the wrapper
through a shell there. Two tests also assumed a POSIX checkout's
trailing newline and path separators.
This commit is contained in:
A-nony-mous committed 2026-10-24 00:22:59 +08:00
1 parent 7e448ef25a
commit ae7fdef734
3 files changed
+12 -3

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@ test('every remaining Java source has an explicit Android boundary and every mig
const java = path.join(root, 'App_Resources/Android/src/main/java');
const list = directory => fs.readdirSync(directory, { withFileTypes: true }).flatMap(entry => {
const file = path.join(directory, entry.name);
return entry.isDirectory() ? list(file) : file.endsWith('.java') ? [path.relative(java, file)] : [];
return entry.isDirectory() ? list(file) : file.endsWith('.java') ? [path.relative(java, file).split(path.sep).join('/')] : [];
});
const boundaries = require('../native/kotlin/android-java-boundaries.json');
const retained = boundaries.flatMap(group => { assert.ok(group.reason.length > 20); return group.files; });