fiz mac build
This commit is contained in:
@@ -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/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user