mirror of
https://github.com/mileswolfallen2/OmniEmu2.0.git
synced 2026-12-05 16:20:42 +00:00
still working
This commit is contained in:
1 parent
bf90aa0e92
commit
c5ad661921
21 files changed
+1507
-146
No files matched your search
@@ -0,0 +1,15 @@
|
||||
const { execSync } = require('child_process');
|
||||
|
||||
exports.default = async function (context) {
|
||||
if (context.electronPlatformName !== 'darwin') return;
|
||||
|
||||
const appPath = `${context.appOutDir}/${context.packager.appInfo.productFilename}.app`;
|
||||
console.log(`Ad-hoc signing macOS app at: ${appPath}`);
|
||||
|
||||
try {
|
||||
execSync(`codesign --force --deep -s - "${appPath}"`, { stdio: 'inherit' });
|
||||
console.log('Ad-hoc signing complete');
|
||||
} catch {
|
||||
console.warn('Ad-hoc signing failed (may already be signed or codesign unavailable)');
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user