Skip to content

Turn meetings into live agent loops. Record, transcribe, and analyze meetings with real-time AI intelligence — before, during, and after calls.

fix: dmg build flow with correct binary extaction and path updates

Lalit Guptaa9771443607f
diff --git a/build/entitlements.mac.plist b/build/entitlements.mac.plist
new file mode 100644
index 0000000..64936ac
--- /dev/null
+++ b/build/entitlements.mac.plist
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>com.apple.security.cs.allow-jit</key>
+ <true/>
+ <key>com.apple.security.cs.allow-unsigned-executable-memory</key>
+ <true/>
+ <key>com.apple.security.cs.disable-library-validation</key>
+ <true/>
+ <key>com.apple.security.cs.allow-dyld-environment-variables</key>
+ <true/>
+ <key>com.apple.security.device.audio-input</key>
+ <true/>
+ <key>com.apple.security.device.camera</key>
+ <true/>
+ <key>com.apple.security.network.client</key>
+ <true/>
+ <key>com.apple.security.network.server</key>
+ <true/>
+ <key>com.apple.security.files.user-selected.read-write</key>
+ <true/>
+</dict>
+</plist>
diff --git a/electron-builder.config.js b/electron-builder.config.js
index 2c763cf..2e84923 100644
--- a/electron-builder.config.js
+++ b/electron-builder.config.js
@@ -117,50 +117,90 @@ const config = {
const resourcesPath = path.join(appOutDir, `${appName}.app`, 'Contents', 'Resources');
const unpackedPath = path.join(resourcesPath, 'app.asar.unpacked');
- const videodbBinPath = path.join(unpackedPath, 'node_modules', 'videodb', 'bin');
+ const videodbAppBundle = path.join(
+ unpackedPath, 'node_modules', 'videodb', 'bin', 'VideoDBCapture.app'
+ );
+ const macosDir = path.join(videodbAppBundle, 'Contents', 'MacOS');
+ const infoPlistPath = path.join(videodbAppBundle, 'Contents', 'Info.plist');
- console.log('Checking videodb binaries at:', videodbBinPath);
+ console.log('Checking videodb binaries at:', macosDir);
- const recorderPath = path.join(videodbBinPath, 'recorder');
- const librecorderPath = path.join(videodbBinPath, 'librecorder.dylib');
+ const recorderPath = path.join(macosDir, 'capture');
+ const librecorderPath = path.join(macosDir, 'librecorder.dylib');
if (fs.existsSync(recorderPath)) {
- console.log('Found recorder binary');
+ console.log('Found capture binary');
try {
const fileOutput = execSync(`file "${recorderPath}"`).toString();
- console.log('Recorder binary type:', fileOutput.trim());
+ console.log('Capture binary type:', fileOutput.trim());
const targetArch = context.arch;
const isArm64 = targetArch === 'arm64' || targetArch === 3; // arch 3 = arm64 in electron-builder
const isX64 = targetArch === 'x64' || targetArch === 1; // arch 1 = x64 in electron-builder
if (isArm64 && fileOutput.includes('x86_64') && !fileOutput.includes('arm64')) {
- console.warn('WARNING: Recorder binary is x86_64 but building for arm64!');
- console.warn('The binary will run under Rosetta 2, which may cause issues.');
- console.warn('Consider requesting arm64 binaries from the videodb package maintainers.');
+ console.warn('WARNING: Capture binary is x86_64 but building for arm64!');
} else if (isX64 && fileOutput.includes('arm64') && !fileOutput.includes('x86_64')) {
- console.warn('WARNING: Recorder binary is arm64 but building for x64!');
- console.warn('This may cause compatibility issues.');
+ console.warn('WARNING: Capture binary is arm64 but building for x64!');
}
fs.chmodSync(recorderPath, 0o755);
- console.log('Set recorder binary permissions to 755');
+ console.log('Set capture binary permissions to 755');
} catch (error) {
- console.error('Error checking recorder binary:', error.message);
+ console.error('Error checking capture binary:', error.message);
}
} else {
- console.error('ERROR: Recorder binary not found at', recorderPath);
+ console.error('ERROR: Capture binary not found at', recorderPath);
}
if (fs.existsSync(librecorderPath)) {
- console.log('Found librecorder.dylib');
fs.chmodSync(librecorderPath, 0o644);
console.log('Set librecorder.dylib permissions to 644');
} else {
console.error('ERROR: librecorder.dylib not found at', librecorderPath);
}
+ // Patch Info.plist with mic/camera usage descriptions
+ if (fs.existsSync(infoPlistPath)) {
+ try {
+ let plistContent = fs.readFileSync(infoPlistPath, 'utf8');
+ if (!plistContent.includes('NSMicrophoneUsageDescription')) {
+ plistContent = plistContent.replace(
+ '</dict>',
+ ' <key>NSMicrophoneUsageDescription</key>\n' +
+ ' <string>VideoDB Capture needs microphone access to record audio.</string>\n' +
+ ' <key>NSCameraUsageDescription</key>\n' +
+ ' <string>VideoDB Capture needs camera access to record video.</string>\n' +
+ '</dict>'
+ );
+ fs.writeFileSync(infoPlistPath, plistContent);
+ console.log('Patched VideoDBCapture Info.plist with mic/camera usage descriptions');
+ }
+ } catch (err) {
+ console.warn('Failed to patch Info.plist:', err.message);
+ }
+ }
+
+ // Re-codesign the .app bundle inside-out so macOS TCC recognises it
+ // after electron-builder packing (hardened runtime invalidates signatures)
+ try {
+ if (fs.existsSync(librecorderPath)) {
+ execSync(`codesign --force --sign - "${librecorderPath}"`);
+ console.log('Codesigned librecorder.dylib');
+ }
+ if (fs.existsSync(recorderPath)) {
+ execSync(`codesign --force --sign - "${recorderPath}"`);
+ console.log('Codesigned capture binary');
+ }
+ if (fs.existsSync(videodbAppBundle)) {
+ execSync(`codesign --force --sign - "${videodbAppBundle}"`);
+ console.log('Codesigned VideoDBCapture.app bundle');
+ }
+ } catch (error) {
+ console.warn('Codesign failed (mic/screen permissions may not work):', error.message);
+ }
+
const betterSqlitePath = path.join(
unpackedPath,
'node_modules',
@@ -171,6 +211,12 @@ const config = {
);
if (fs.existsSync(betterSqlitePath)) {
console.log('Found better-sqlite3 native module');
+ try {
+ execSync(`codesign --force --sign - "${betterSqlitePath}"`);
+ console.log('Codesigned better_sqlite3.node');
+ } catch (error) {
+ console.warn('Failed to codesign better_sqlite3.node:', error.message);
+ }
} else {
console.warn('WARNING: better-sqlite3 native module not found');
}
diff --git a/package-lock.json b/package-lock.json
index 42ef49d..8031bde 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -106,7 +106,6 @@
"integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==",
"dev": true,
"license": "MIT",
- "peer": true,
"dependencies": {
"@babel/code-frame": "^7.29.0",
"@babel/generator": "^7.29.0",
@@ -402,7 +401,6 @@
"integrity": "sha512-IWrosm/yrn43eiKqkfkHis7QioDleaXQHdDVPKg0FSwwd/DuvyX79TZnFOnYpB7dcsFAMmtFztZuXPDvSePkFw==",
"dev": true,
"license": "MIT",
- "peer": true,
"dependencies": {
"fast-deep-equal": "^3.1.1",
"fast-json-stable-stringify": "^2.0.0",
@@ -3232,7 +3230,6 @@
"resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.90.21.tgz",
"integrity": "sha512-0Lu6y5t+tvlTJMTO7oh5NSpJfpg/5D41LlThfepTixPYkJ0sE2Jj0m0f6yYqujBwIXlId87e234+MxG3D3g7kg==",
"license": "MIT",
- "peer": true,
"dependencies": {
"@tanstack/query-core": "5.90.20"
},
@@ -3262,7 +3259,6 @@
"https://trpc.io/sponsor"
],
"license": "MIT",
- "peer": true,
"peerDependencies": {
"@trpc/server": "11.11.0",
"typescript": ">=5.7.2"
@@ -3292,7 +3288,6 @@
"https://trpc.io/sponsor"
],
"license": "MIT",
- "peer": true,
"peerDependencies": {
"typescript": ">=5.7.2"
}
@@ -3348,7 +3343,6 @@
"integrity": "sha512-NMv9ASNARoKksWtsq/SHakpYAYnhBrQgGD8zkLYk/jaK8jUGn08CfEdTRgYhMypUQAfzSP8W6gNLe0q19/t4VA==",
"devOptional": true,
"license": "MIT",
- "peer": true,
"dependencies": {
"@types/node": "*"
}
@@ -3468,7 +3462,6 @@
"resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.14.tgz",
"integrity": "sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==",
"license": "MIT",
- "peer": true,
"dependencies": {
"csstype": "^3.2.2"
}
@@ -3479,7 +3472,6 @@
"integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==",
"devOptional": true,
"license": "MIT",
- "peer": true,
"peerDependencies": {
"@types/react": "^19.2.0"
}
@@ -3873,6 +3865,7 @@
"integrity": "sha512-+25nxyyznAXF7Nef3y0EbBeqmGZgeN/BxHX29Rs39djAfaFalmQ89SE6CWyDCHzGL0yt/ycBtNOmGTW0FyGWNw==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"archiver-utils": "^2.1.0",
"async": "^3.2.4",
@@ -3892,6 +3885,7 @@
"integrity": "sha512-bEL/yUb/fNNiNTuUz979Z0Yg5L+LzLxGJz8x79lYmR54fmTIb6ob/hNQgkQnIUDWIFjZVQwl9Xs356I6BAMHfw==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"glob": "^7.1.4",
"graceful-fs": "^4.2.0",
@@ -3913,7 +3907,8 @@
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
"dev": true,
- "license": "MIT"
+ "license": "MIT",
+ "peer": true
},
"node_modules/archiver-utils/node_modules/brace-expansion": {
"version": "1.1.12",
@@ -3921,6 +3916,7 @@
"integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"balanced-match": "^1.0.0",
"concat-map": "0.0.1"
@@ -3933,6 +3929,7 @@
"deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]",
"dev": true,
"license": "ISC",
+ "peer": true,
"dependencies": {
"fs.realpath": "^1.0.0",
"inflight": "^1.0.4",
@@ -3954,6 +3951,7 @@
"integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==",
"dev": true,
"license": "ISC",
+ "peer": true,
"dependencies": {
"brace-expansion": "^1.1.7"
},
@@ -3967,6 +3965,7 @@
"integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"core-util-is": "~1.0.0",
"inherits": "~2.0.3",
@@ -3982,7 +3981,8 @@
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
"dev": true,
- "license": "MIT"
+ "license": "MIT",
+ "peer": true
},
"node_modules/archiver-utils/node_modules/string_decoder": {
"version": "1.1.1",
@@ -3990,6 +3990,7 @@
"integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"safe-buffer": "~5.1.0"
}
@@ -4206,7 +4207,6 @@
"integrity": "sha512-8VYKM3MjCa9WcaSAI3hzwhmyHVlH8tiGFwf0RlTsZPWJ1I5MkzjiudCo4KC4DxOaL/53A5B1sI/IbldNFDbsKA==",
"hasInstallScript": true,
"license": "MIT",
- "peer": true,
"dependencies": {
"bindings": "^1.5.0",
"prebuild-install": "^7.1.1"
@@ -4360,7 +4360,6 @@
}
],
"license": "MIT",
- "peer": true,
"dependencies": {
"baseline-browser-mapping": "^2.9.0",
"caniuse-lite": "^1.0.30001759",
@@ -4930,6 +4929,7 @@
"integrity": "sha512-D3uMHtGc/fcO1Gt1/L7i1e33VOvD4A9hfQLP+6ewd+BvG/gQ84Yh4oftEhAdjSMgBgwGL+jsppT7JYNpo6MHHg==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"buffer-crc32": "^0.2.13",
"crc32-stream": "^4.0.2",
@@ -5159,6 +5159,7 @@
"integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==",
"dev": true,
"license": "Apache-2.0",
+ "peer": true,
"bin": {
"crc32": "bin/crc32.njs"
},
@@ -5172,6 +5173,7 @@
"integrity": "sha512-NT7w2JVU7DFroFdYkeq8cywxrgjPHWkdX1wjpRQXPX5Asews3tA+Ght6lddQO5Mkumffp3X7GEqku3epj2toIw==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"crc-32": "^1.2.0",
"readable-stream": "^3.4.0"
@@ -5481,7 +5483,6 @@
"integrity": "sha512-NoXo6Liy2heSklTI5OIZbCgXC1RzrDQsZkeEwXhdOro3FT1VBOvbubvscdPnjVuQ4AMwwv61oaH96AbiYg9EnQ==",
"dev": true,
"license": "MIT",
- "peer": true,
"dependencies": {
"app-builder-lib": "25.1.8",
"builder-util": "25.1.7",
@@ -5965,7 +5966,6 @@
"dev": true,
"hasInstallScript": true,
"license": "MIT",
- "peer": true,
"bin": {
"esbuild": "bin/esbuild"
},
@@ -6105,7 +6105,6 @@
"resolved": "https://registry.npmjs.org/express/-/express-5.2.1.tgz",
"integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==",
"license": "MIT",
- "peer": true,
"dependencies": {
"accepts": "^2.0.0",
"body-parser": "^2.2.1",
@@ -6944,7 +6943,6 @@
"resolved": "https://registry.npmjs.org/hono/-/hono-4.12.3.tgz",
"integrity": "sha512-SFsVSjp8sj5UumXOOFlkZOG6XS9SJDKw0TbwFeV+AJ8xlST8kxK5Z/5EYa111UY8732lK2S/xB653ceuaoGwpg==",
"license": "MIT",
- "peer": true,
"engines": {
"node": ">=16.9.0"
}
@@ -7379,7 +7377,8 @@
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
"integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==",
"dev": true,
- "license": "MIT"
+ "license": "MIT",
+ "peer": true
},
"node_modules/isbinaryfile": {
"version": "5.0.7",
@@ -7440,7 +7439,6 @@
"integrity": "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==",
"dev": true,
"license": "MIT",
- "peer": true,
"bin": {
"jiti": "bin/jiti.js"
}
@@ -7572,6 +7570,7 @@
"integrity": "sha512-b94GiNHQNy6JNTrt5w6zNyffMrNkXZb3KTkCZJb2V1xaEGCk093vkZ2jk3tpaeP33/OiXC+WvK9AxUebnf5nbw==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"readable-stream": "^2.0.5"
},
@@ -7585,6 +7584,7 @@
"integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"core-util-is": "~1.0.0",
"inherits": "~2.0.3",
@@ -7600,7 +7600,8 @@
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
"dev": true,
- "license": "MIT"
+ "license": "MIT",
+ "peer": true
},
"node_modules/lazystream/node_modules/string_decoder": {
"version": "1.1.1",
@@ -7608,6 +7609,7 @@
"integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"safe-buffer": "~5.1.0"
}
@@ -7643,35 +7645,40 @@
"resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz",
"integrity": "sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ==",
"dev": true,
- "license": "MIT"
+ "license": "MIT",
+ "peer": true
},
"node_modules/lodash.difference": {
"version": "4.5.0",
"resolved": "https://registry.npmjs.org/lodash.difference/-/lodash.difference-4.5.0.tgz",
"integrity": "sha512-dS2j+W26TQ7taQBGN8Lbbq04ssV3emRw4NY58WErlTO29pIqS0HmoT5aJ9+TUQ1N3G+JOZSji4eugsWwGp9yPA==",
"dev": true,
- "license": "MIT"
+ "license": "MIT",
+ "peer": true
},
"node_modules/lodash.flatten": {
"version": "4.4.0",
"resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz",
"integrity": "sha512-C5N2Z3DgnnKr0LOpv/hKCgKdb7ZZwafIrsesve6lmzvZIRZRGaZ/l6Q8+2W7NaT+ZwO3fFlSCzCzrDCFdJfZ4g==",
"dev": true,
- "license": "MIT"
+ "license": "MIT",
+ "peer": true
},
"node_modules/lodash.isplainobject": {
"version": "4.0.6",
"resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz",
"integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==",
"dev": true,
- "license": "MIT"
+ "license": "MIT",
+ "peer": true
},
"node_modules/lodash.union": {
"version": "4.6.0",
"resolved": "https://registry.npmjs.org/lodash.union/-/lodash.union-4.6.0.tgz",
"integrity": "sha512-c4pB2CdGrGdjMKYLA+XiRDO7Y0PRQbm/Gzg8qMj+QH+pFVAoTp5sBpO0odL3FjoPCGjK96p6qsP+yQoiLoOBcw==",
"dev": true,
- "license": "MIT"
+ "license": "MIT",
+ "peer": true
},
"node_modules/log-symbols": {
"version": "4.1.0",
@@ -9382,7 +9389,6 @@
}
],
"license": "MIT",
- "peer": true,
"dependencies": {
"nanoid": "^3.3.11",
"picocolors": "^1.1.1",
@@ -9568,7 +9574,8 @@
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
"integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==",
"dev": true,
- "license": "MIT"
+ "license": "MIT",
+ "peer": true
},
"node_modules/process-warning": {
"version": "5.0.0",
@@ -9790,7 +9797,6 @@
"resolved": "https://registry.npmjs.org/react/-/react-19.2.4.tgz",
"integrity": "sha512-9nfp2hYpCwOjAN+8TZFGhtWEwgvWHXqESH8qT89AT/lWklpLON22Lc8pEtnpsZz7VmawabSU0gCjnj8aC0euHQ==",
"license": "MIT",
- "peer": true,
"engines": {
"node": ">=0.10.0"
}
@@ -9800,7 +9806,6 @@
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.4.tgz",
"integrity": "sha512-AXJdLo8kgMbimY95O2aKQqsz2iWi9jMgKJhRBAxECE4IFxfcazB2LmzloIoibJI3C12IlY20+KFaLv+71bUJeQ==",
"license": "MIT",
- "peer": true,
"dependencies": {
"scheduler": "^0.27.0"
},
@@ -9957,6 +9962,7 @@
"integrity": "sha512-v05I2k7xN8zXvPD9N+z/uhXPaj0sUFCe2rcWZIpBsqxfP7xXFQ0tipAd/wjj1YxWyWtUS5IDJpOG82JKt2EAVA==",
"dev": true,
"license": "Apache-2.0",
+ "peer": true,
"dependencies": {
"minimatch": "^5.1.0"
}
@@ -9966,7 +9972,8 @@
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
"dev": true,
- "license": "MIT"
+ "license": "MIT",
+ "peer": true
},
"node_modules/readdir-glob/node_modules/brace-expansion": {
"version": "2.0.2",
@@ -9974,6 +9981,7 @@
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"balanced-match": "^1.0.0"
}
@@ -9984,6 +9992,7 @@
"integrity": "sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==",
"dev": true,
"license": "ISC",
+ "peer": true,
"dependencies": {
"brace-expansion": "^2.0.1"
},
@@ -11065,7 +11074,6 @@
"integrity": "sha512-3ofp+LL8E+pK/JuPLPggVAIaEuhvIz4qNcf3nA1Xn2o/7fb7s/TYpHhwGDv1ZU3PkBluUVaF8PyCHcm48cKLWQ==",
"dev": true,
"license": "MIT",
- "peer": true,
"dependencies": {
"@alloc/quick-lru": "^5.2.0",
"arg": "^5.0.2",
@@ -11262,7 +11270,6 @@
"integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",
"dev": true,
"license": "MIT",
- "peer": true,
"engines": {
"node": ">=12"
},
@@ -11371,7 +11378,6 @@
"integrity": "sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw==",
"dev": true,
"license": "MIT",
- "peer": true,
"dependencies": {
"esbuild": "~0.27.0",
"get-tsconfig": "^4.7.5"
@@ -11915,7 +11921,6 @@
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
"license": "Apache-2.0",
- "peer": true,
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
@@ -12315,7 +12320,6 @@
"integrity": "sha512-+Oxm7q9hDoLMyJOYfUYBuHQo+dkAloi33apOPP56pzj+vsdJDzr+j1NISE5pyaAuKL4A3UD34qd0lx5+kfKp2g==",
"dev": true,
"license": "MIT",
- "peer": true,
"dependencies": {
"esbuild": "^0.25.0",
"fdir": "^6.4.4",
@@ -12409,7 +12413,6 @@
"integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",
"dev": true,
"license": "MIT",
- "peer": true,
"engines": {
"node": ">=12"
},
@@ -12500,7 +12503,6 @@
"resolved": "https://registry.npmjs.org/ws/-/ws-8.20.0.tgz",
"integrity": "sha512-sAt8BhgNbzCtgGbt2OxmpuryO63ZoDk/sqaB/znQm94T4fCEsy/yV+7CdC1kJhOU9lboAEU7R3kquuycDoibVA==",
"license": "MIT",
- "peer": true,
"engines": {
"node": ">=10.0.0"
},
@@ -12603,6 +12605,7 @@
"integrity": "sha512-9qv4rlDiopXg4E69k+vMHjNN63YFMe9sZMrdlvKnCjlCRWeCBswPPMPUfx+ipsAWq1LXHe70RcbaHdJJpS6hyQ==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"archiver-utils": "^3.0.4",
"compress-commons": "^4.1.2",
@@ -12618,6 +12621,7 @@
"integrity": "sha512-KVgf4XQVrTjhyWmx6cte4RxonPLR9onExufI1jhvw/MQ4BB6IsZD5gT8Lq+u/+pRkWna/6JoHpiQioaqFP5Rzw==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"glob": "^7.2.3",
"graceful-fs": "^4.2.0",
@@ -12639,7 +12643,8 @@
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
"dev": true,
- "license": "MIT"
+ "license": "MIT",
+ "peer": true
},
"node_modules/zip-stream/node_modules/brace-expansion": {
"version": "1.1.12",
@@ -12647,6 +12652,7 @@
"integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"balanced-match": "^1.0.0",
"concat-map": "0.0.1"
@@ -12659,6 +12665,7 @@
"deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]",
"dev": true,
"license": "ISC",
+ "peer": true,
"dependencies": {
"fs.realpath": "^1.0.0",
"inflight": "^1.0.4",
@@ -12680,6 +12687,7 @@
"integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==",
"dev": true,
"license": "ISC",
+ "peer": true,
"dependencies": {
"brace-expansion": "^1.1.7"
},
@@ -12692,7 +12700,6 @@
"resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",
"integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
"license": "MIT",
- "peer": true,
"funding": {
"url": "https://github.com/sponsors/colinhacks"
}
diff --git a/src/main/lib/paths.ts b/src/main/lib/paths.ts
index 2d4dbe9..17dda97 100644
--- a/src/main/lib/paths.ts
+++ b/src/main/lib/paths.ts
@@ -54,17 +54,17 @@ export function getNodeModulesBinaryDir(moduleName: string, binaryDir: string):
}
/**
- * Get the videodb recorder binary path
+ * Get the videodb capture binary path (inside VideoDBCapture.app bundle)
*/
export function getVideoDBRecorderPath(): string {
- return getNodeModulesBinaryPath('videodb', 'bin/recorder');
+ return getNodeModulesBinaryPath('videodb', 'bin/VideoDBCapture.app/Contents/MacOS/capture');
}
/**
- * Get the videodb recorder binary directory (contains recorder and librecorder.dylib)
+ * Get the videodb recorder binary directory (contains capture and librecorder.dylib)
*/
export function getVideoDBRecorderDir(): string {
- return getNodeModulesBinaryDir('videodb', 'bin');
+ return getNodeModulesBinaryDir('videodb', 'bin/VideoDBCapture.app/Contents/MacOS');
}
/**
@@ -100,7 +100,7 @@ export function verifyVideoDBRecorder(): { exists: boolean; path: string; error?
const dylibPath = path.join(binDir, 'librecorder.dylib');
if (!fs.existsSync(recorderPath)) {
- return { exists: false, path: recorderPath, error: `Recorder binary not found at ${recorderPath}` };
+ return { exists: false, path: recorderPath, error: `Capture binary not found at ${recorderPath}` };
}
if (process.platform === 'darwin' && !fs.existsSync(dylibPath)) {
diff --git a/src/main/lib/videodb-patch.ts b/src/main/lib/videodb-patch.ts
index 3275e53..32ca87b 100644
--- a/src/main/lib/videodb-patch.ts
+++ b/src/main/lib/videodb-patch.ts
@@ -32,12 +32,14 @@ export function applyVideoDBPatches(): void {
try {
// Source: binaries from the unpacked asar
- // In packaged app: /path/to/App.app/Contents/Resources/app.asar.unpacked/node_modules/videodb/bin
+ // v0.2.x stores binaries inside VideoDBCapture.app/Contents/MacOS/
// Use app.getAppPath() for reliable root path (works regardless of __dirname depth)
- const srcDir = path
+ const binBase = path
.join(app.getAppPath(), 'node_modules', 'videodb', 'bin')
.replace('app.asar', 'app.asar.unpacked');
+ const srcDir = path.join(binBase, 'VideoDBCapture.app', 'Contents', 'MacOS');
+
// Destination: writable userData directory
// e.g., ~/Library/Application Support/notter/bin
const destDir = path.join(app.getPath('userData'), 'bin');
@@ -74,14 +76,14 @@ export function applyVideoDBPatches(): void {
// eslint-disable-next-line @typescript-eslint/no-var-requires
const cp = require('child_process');
const origSpawn = cp.spawn;
- const binName = process.platform === 'win32' ? 'recorder.exe' : 'recorder';
+ const binName = process.platform === 'win32' ? 'capture.exe' : 'capture';
const writableBin = path.join(destDir, binName);
cp.spawn = function (cmd: string, args: string[], opts: Record<string, unknown>) {
- // Intercept calls to the recorder binary
+ // Intercept calls to the capture binary
if (
typeof cmd === 'string' &&
- cmd.includes('recorder') &&
+ cmd.includes('capture') &&
!cmd.startsWith(destDir) &&
fs.existsSync(writableBin)
) {