fix: add Linux package homepage metadata

This commit is contained in:
2026-08-24 14:15:41 +08:00
parent 0d03d00ebf
commit 641f6636b6
3 changed files with 11 additions and 0 deletions

View File

@@ -92,6 +92,7 @@ describe('Pi runtime production bundler', () => {
it('wires every package target to its matching staged Pi runtime', async () => {
const packageJson = JSON.parse(await readFile('package.json', 'utf8')) as {
homepage: string;
scripts: Record<string, string>;
};
const builder = YAML.parse(await readFile('electron-builder.yml', 'utf8')) as Record<
@@ -109,6 +110,7 @@ describe('Pi runtime production bundler', () => {
.toBe('node scripts/smoke-pi-real.mjs');
expect(packageJson.scripts['perf:pi:release'])
.toBe('node scripts/run-pi-release-performance.mjs');
expect(packageJson.homepage).toBe('https://git.nianxx.cn/wangxuming/makelore');
expect(builder.mac.extraResources).toContainEqual({
from: 'build/pi-runtime/darwin-${arch}',
to: 'pi-runtime',