mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-07-27 04:49:49 -07:00
5d8673f299
- `sync --ui` now launches detached; closing standalone Sync window exits app - `--check` uses BatchMode + ConnectTimeout + 15s timeoutMs on all SSH calls - `runSyncLauncher` settles on `exit` (not just `close`) for Electron pipe inheritance - Added `timeoutMs` to `runSyncLauncher`; check-host passes 30s deadline - `handleSyncCliAtEntry` wraps exit deps for testability; fixes Linux AppImage GUI fallthrough - `config-settings-window` gains optional `onClosed` hook - Added preload-syncui bundle to `build:syncui` script
17 lines
638 B
TypeScript
17 lines
638 B
TypeScript
import test from 'node:test';
|
|
import assert from 'node:assert/strict';
|
|
import fs from 'node:fs';
|
|
import path from 'node:path';
|
|
|
|
test('build:syncui bundles the sandboxed preload and keeps Electron external', () => {
|
|
const packageJson = JSON.parse(
|
|
fs.readFileSync(path.join(import.meta.dir, '..', 'package.json'), 'utf8'),
|
|
) as { scripts: Record<string, string> };
|
|
const command = packageJson.scripts['build:syncui'] ?? '';
|
|
|
|
assert.match(command, /src\/preload-syncui\.ts/);
|
|
assert.match(command, /--bundle/);
|
|
assert.match(command, /--external:electron/);
|
|
assert.match(command, /--outfile=dist\/preload-syncui\.js/);
|
|
});
|