KAN-51: add isolated Tauri macOS app scaffold
CI/CD / preconditions (pull_request) Successful in 2s
CI/CD / test_and_check_app (pull_request) Successful in 5m49s
CI/CD / Publish immutable image (pull_request) Skipped

This commit is contained in:
2026-09-16 13:13:53 +02:00
parent 0a2807a28c
commit 0f62445c3e
21 changed files with 5267 additions and 1 deletions
+24
View File
@@ -0,0 +1,24 @@
import assert from 'node:assert/strict';
import { readFileSync } from 'node:fs';
import test from 'node:test';
import { en } from '../ui/locales/en.js';
const html = readFileSync(new URL('../ui/index.html', import.meta.url), 'utf8');
test('every launcher text resolves to a nonempty English translation', () => {
for (const [, key] of html.matchAll(/data-i18n="([^"]+)"/g)) {
assert.equal(typeof en[key], 'string', key);
assert.ok(en[key].trim(), key);
}
});
test('the launcher opens only the configured HTTPS workspace without an IPC bridge', () => {
const links = [...html.matchAll(/<a\s[^>]*href="([^"]+)"/g)];
assert.equal(links.length, 1);
assert.equal(links[0][1], 'https://kanbangit.de/');
const main = readFileSync(
new URL('../ui/main.js', import.meta.url),
'utf8',
);
assert.doesNotMatch(main, /__TAURI__|invoke\(/);
});