Skip to content

Unrestricted Open-source alternative to AI video platforms — Free AI image & video generation studio with 600+ models (Flux, Midjourney, Kling, Sora, Veo). No content filters. Self-hosted, MIT licensed.

Add afterPack hook for ad-hoc code signing on macOS

Anil Matcha541246fca981
diff --git a/afterPack.js b/afterPack.js
new file mode 100644
index 00000000..869b8cee
--- /dev/null
+++ b/afterPack.js
@@ -0,0 +1,11 @@
+import { execSync } from 'child_process';
+import path from 'path';
+
+export default async function afterPack({ appOutDir, packager }) {
+ if (packager.platform.name !== 'mac') return;
+
+ const appPath = path.join(appOutDir, `${packager.appInfo.productName}.app`);
+ console.log(` • ad-hoc signing path=${appPath}`);
+ execSync(`codesign --deep --force --sign - "${appPath}"`, { stdio: 'inherit' });
+ console.log(` • ad-hoc signing complete`);
+}
diff --git a/package.json b/package.json
index 2ae13868..e99c7104 100644
--- a/package.json
+++ b/package.json
@@ -22,6 +22,7 @@
"directories": {
"output": "release"
},
+ "afterPack": "./afterPack.js",
"files": [
"dist/**/*",
"electron/**/*"