Implement wiring hardening, runtime API config, smoke tests, and build scripts
This commit is contained in:
15
scripts/adhoc-sign.js
Normal file
15
scripts/adhoc-sign.js
Normal file
@@ -0,0 +1,15 @@
|
||||
// Post-build hook: ad-hoc sign the .app bundle so macOS 14+ will open it
|
||||
// without requiring an Apple Developer certificate.
|
||||
const { execSync } = require('child_process');
|
||||
const path = require('path');
|
||||
|
||||
exports.default = async function (context) {
|
||||
const appPath = path.join(
|
||||
context.appOutDir,
|
||||
`${context.packager.appInfo.productFilename}.app`,
|
||||
);
|
||||
console.log(`Ad-hoc signing: ${appPath}`);
|
||||
execSync(`xattr -cr "${appPath}"`);
|
||||
execSync(`codesign --force --deep --sign - "${appPath}"`);
|
||||
console.log('Ad-hoc signing complete.');
|
||||
};
|
||||
Reference in New Issue
Block a user