mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-09-24 14:55:37 +00:00
uiohook-napi ships a native .node binary that cannot be loaded from
inside an .asar archive. Without asarUnpack, nodeRequire('uiohook-napi')
fails silently in packaged builds, the hook never starts, and cursor
telemetry stays empty on Windows.
Changes:
- Add node_modules/uiohook-napi/** to asarUnpack so the native binary
is extracted to app.asar.unpacked/ where require() can reach it
- Extend loadUiohookModule() fallback chain to handle variant export
shapes across platform builds (uIOhook / uiohook / Uiohook / default)
- Add normalizeHookMouseButton() and getHookMouseButton() helpers for
robust cross-platform button code handling (codes 38/39 variants)
- Add diagnostic log to startInteractionCapture() to surface hook load
state in future debug sessions
71 lines
1.7 KiB
JSON
71 lines
1.7 KiB
JSON
// @see - https://www.electron.build/configuration/configuration
|
|
{
|
|
"$schema": "https://raw.githubusercontent.com/electron-userland/electron-builder/master/packages/app-builder-lib/scheme.json",
|
|
"appId": "dev.recordly.app",
|
|
"asar": true,
|
|
"asarUnpack": [
|
|
"node_modules/ffmpeg-static/**",
|
|
"node_modules/uiohook-napi/**",
|
|
"electron/native/**"
|
|
],
|
|
"productName": "Recordly",
|
|
"npmRebuild": true,
|
|
"buildDependenciesFromSource": true,
|
|
"compression": "normal",
|
|
"directories": {
|
|
"output": "release"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"dist-electron",
|
|
"electron/native",
|
|
"!*.png",
|
|
"!preview*.png",
|
|
"!*.md",
|
|
"!README.md",
|
|
"!CONTRIBUTING.md",
|
|
"!LICENSE"
|
|
],
|
|
"extraResources": [
|
|
{
|
|
"from": "public/wallpapers",
|
|
"to": "assets/wallpapers"
|
|
}
|
|
],
|
|
|
|
"mac": {
|
|
"hardenedRuntime": false,
|
|
"target": [
|
|
{
|
|
"target": "dmg",
|
|
"arch": ["x64", "arm64"]
|
|
}
|
|
],
|
|
"icon": "icons/icons/mac/icon.icns",
|
|
"artifactName": "Recordly.dmg",
|
|
"extendInfo": {
|
|
"NSAudioCaptureUsageDescription": "Recordly needs audio capture permission to record system audio.",
|
|
"NSMicrophoneUsageDescription": "Recordly needs microphone access to record voice audio.",
|
|
"NSCameraUseContinuityCameraDeviceType": true,
|
|
"com.apple.security.device.audio-input": true
|
|
}
|
|
},
|
|
"linux": {
|
|
"target": [
|
|
"AppImage"
|
|
],
|
|
"icon": "icons/icons/png",
|
|
"artifactName": "Recordly.AppImage",
|
|
"category": "AudioVideo"
|
|
},
|
|
"win": {
|
|
"target": [
|
|
"nsis"
|
|
],
|
|
"icon": "icons/icons/win/icon.ico"
|
|
,
|
|
"artifactName": "Recordly.exe"
|
|
}
|
|
}
|
|
|