fiz mac build

This commit is contained in:
     Фонтош Иван Сергеевич
2026-05-18 09:19:42 +08:00
parent 02b3131f19
commit 8ec830cdb5
5 changed files with 131 additions and 3 deletions
+11
View File
@@ -52,4 +52,15 @@ void test('package.json: конфиг electron-builder (mac/win/linux)', () => {
assert.ok(!pkg.build.appImage?.artifactName?.includes('version'));
assert.ok(!pkg.build.nsis?.artifactName?.includes('version'));
assert.ok(pkg.build.files.includes('dist/**/*'));
assert.ok(
pkg.build.asarUnpack.some((p) => p.includes('@img')),
'sharp native binaries live under node_modules/@img',
);
});
void test('package.json: pack:mac runs release-mac-prep before electron-builder', () => {
const pkg = JSON.parse(fs.readFileSync(path.join(root, 'package.json'), 'utf8')) as {
scripts: { 'pack:mac': string };
};
assert.match(pkg.scripts['pack:mac'], /release-mac-prep\.mjs/);
});