mirror of
https://github.com/makecindy/cindy.git
synced 2026-12-03 22:39:59 +08:00
* feat(mobile): 原生接收远程桌面并保留后台画中画 Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * fix(mobile): 恢复原生远程桌面的实时背景 Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * fix(mobile): 稳定恢复后的画中画与后台授权交接 Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * test(mobile): 覆盖原生接收器生命周期交错 Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * fix(mobile): 关闭浏览器画中画后恢复原控制模式 Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> * fix(mobile): 画中画准备被拒绝时结束离页会话 Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com> --------- Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
27 lines
856 B
JavaScript
27 lines
856 B
JavaScript
#!/usr/bin/env node
|
|
import { execFileSync } from "node:child_process";
|
|
import { mkdtempSync, rmSync } from "node:fs";
|
|
import { tmpdir } from "node:os";
|
|
import { join } from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
|
|
const directory = mkdtempSync(join(tmpdir(), "cindy-backdrop-test-"));
|
|
try {
|
|
const source = fileURLToPath(
|
|
new URL(
|
|
"../modules/cindy-remote-presentation/ios/RemoteDesktopBackdrop.swift",
|
|
import.meta.url,
|
|
),
|
|
);
|
|
const fixture = fileURLToPath(
|
|
new URL("./fixtures/remote-desktop-backdrop.swift", import.meta.url),
|
|
);
|
|
const executable = join(directory, "backdrop-tests");
|
|
execFileSync("xcrun", ["swiftc", source, fixture, "-o", executable], {
|
|
stdio: "inherit",
|
|
});
|
|
execFileSync(executable, [], { stdio: "inherit" });
|
|
} finally {
|
|
rmSync(directory, { recursive: true, force: true });
|
|
}
|