feat(mobile-app): prepare native app packaging
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import { execFileSync } from 'node:child_process';
|
||||
import { test } from 'node:test';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { dirname, resolve } from 'node:path';
|
||||
|
||||
const mobileRoot = resolve(dirname(fileURLToPath(import.meta.url)), '..');
|
||||
|
||||
test('App 图标与启动图映射均可由预检脚本验证', () => {
|
||||
const output = execFileSync(process.execPath, ['scripts/verify-app-assets.mjs'], {
|
||||
cwd: mobileRoot,
|
||||
encoding: 'utf8'
|
||||
});
|
||||
assert.match(output, /App asset verification passed/);
|
||||
});
|
||||
Reference in New Issue
Block a user