Add screensharing behind a feature flag
This commit is contained in:
parent
7c7f7ee5a0
commit
ceffc2380c
49 changed files with 2044 additions and 164 deletions
22
patches/electron-util+0.13.1.patch
Normal file
22
patches/electron-util+0.13.1.patch
Normal file
|
@ -0,0 +1,22 @@
|
|||
diff --git a/node_modules/electron-util/index.d.ts b/node_modules/electron-util/index.d.ts
|
||||
index 8d493d5..3408e21 100644
|
||||
--- a/node_modules/electron-util/index.d.ts
|
||||
+++ b/node_modules/electron-util/index.d.ts
|
||||
@@ -1,7 +1,7 @@
|
||||
/// <reference lib="dom"/>
|
||||
/// <reference types="electron"/>
|
||||
/// <reference types="node"/>
|
||||
-import {AllElectron, Remote, BrowserWindow, Size, Rectangle, Session, MenuItemConstructorOptions, MenuItem} from 'electron';
|
||||
+import {RemoteMainInterface, BrowserWindow, Size, Rectangle, Session, MenuItemConstructorOptions, MenuItem} from 'electron';
|
||||
import {Options as NewGithubIssueUrlOptions} from 'new-github-issue-url';
|
||||
import {RequireAtLeastOne} from 'type-fest';
|
||||
|
||||
@@ -14,7 +14,7 @@ Access the Electron APIs in both the main and renderer process without having to
|
||||
api.app.quit(); // The `app` API is usually only available in the main process.
|
||||
```
|
||||
*/
|
||||
-export const api: AllElectron | Remote;
|
||||
+export const api: RemoteMainInterface;
|
||||
|
||||
/**
|
||||
Check for various things.
|
13
patches/mac-screen-capture-permissions+2.0.0.patch
Normal file
13
patches/mac-screen-capture-permissions+2.0.0.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/node_modules/mac-screen-capture-permissions/screen-capture-permissions.m b/node_modules/mac-screen-capture-permissions/screen-capture-permissions.m
|
||||
index d9d6a00..78fa83f 100644
|
||||
--- a/node_modules/mac-screen-capture-permissions/screen-capture-permissions.m
|
||||
+++ b/node_modules/mac-screen-capture-permissions/screen-capture-permissions.m
|
||||
@@ -2,6 +2,8 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#include <node_api.h>
|
||||
|
||||
+CG_EXTERN bool CGPreflightScreenCaptureAccess(void) CG_AVAILABLE_STARTING(10.15);
|
||||
+
|
||||
static napi_value hasPermissions(napi_env env, napi_callback_info info) {
|
||||
napi_status status;
|
||||
bool hasPermissions;
|
Loading…
Add table
Add a link
Reference in a new issue