mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
Adding mac version of screen share indicator frame
This commit is contained in:
parent
a2e0d544f8
commit
f287c76549
@ -55,22 +55,6 @@
|
||||
<key>UID</key>
|
||||
<integer>0</integer>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CHILDREN</key>
|
||||
<array/>
|
||||
<key>GID</key>
|
||||
<integer>80</integer>
|
||||
<key>PATH</key>
|
||||
<string>../../node_modules/screen-share-indicator-frame/SymphonyScreenShareIndicator</string>
|
||||
<key>PATH_TYPE</key>
|
||||
<integer>0</integer>
|
||||
<key>PERMISSIONS</key>
|
||||
<integer>493</integer>
|
||||
<key>TYPE</key>
|
||||
<integer>3</integer>
|
||||
<key>UID</key>
|
||||
<integer>0</integer>
|
||||
</dict>
|
||||
</array>
|
||||
<key>GID</key>
|
||||
<integer>80</integer>
|
||||
|
@ -48,7 +48,8 @@
|
||||
"library/indexvalidator.exec",
|
||||
"library/cryptoLib.dylib",
|
||||
"library/dictionary",
|
||||
"library/lz4.exec"
|
||||
"library/lz4.exec",
|
||||
"node_modules/screen-share-indicator-frame/SymphonyScreenShareIndicator"
|
||||
],
|
||||
"mac": {
|
||||
"category": "public.app-category.business",
|
||||
|
@ -71,6 +71,7 @@ fi
|
||||
|
||||
codesign --force --options runtime -s "Developer ID Application: Symphony Communication Services LLC" library/lz4.exec
|
||||
codesign --force --options runtime -s "Developer ID Application: Symphony Communication Services LLC" library/indexvalidator.exec
|
||||
codesign --force --options runtime -s "Developer ID Application: Symphony Communication Services LLC" node_modules/screen-share-indicator-frame/SymphonyScreenShareIndicator
|
||||
|
||||
PKG_VERSION=$(node -e "console.log(require('./package.json').version);")
|
||||
|
||||
|
@ -129,7 +129,7 @@ export class WindowHandler {
|
||||
this.screenShareIndicatorFrameUtil = isDevEnv
|
||||
? path.join(__dirname,
|
||||
'../../../node_modules/screen-share-indicator-frame/SymphonyScreenShareIndicator')
|
||||
: path.join(path.dirname(app.getPath('exe')), 'SymphonyScreenShareIndicator');
|
||||
: path.join(path.dirname(app.getPath('exe')), '../node_modules/screen-share-indicator-frame/SymphonyScreenShareIndicator');
|
||||
}
|
||||
|
||||
this.appMenu = null;
|
||||
@ -599,8 +599,8 @@ export class WindowHandler {
|
||||
});
|
||||
ipcMain.once('screen-source-selected', (_event, source) => {
|
||||
if (source != null) {
|
||||
logger.info(`window-handler: screen-source-selected`, source, id);
|
||||
if (isWindowsOS) {
|
||||
logger.info(`window-handler: screen-source-selected`, source, id);
|
||||
const type = source.id.split(':')[0];
|
||||
if (type === 'window') {
|
||||
const hwnd = source.id.split(':')[1];
|
||||
@ -1057,6 +1057,7 @@ export class WindowHandler {
|
||||
logger.info(`window handler: execCmd: util: ${util} utilArgs: ${utilArgs}`);
|
||||
return new Promise<ChildProcess>((resolve, reject) => {
|
||||
return execFile(util, utilArgs, (error: ExecException | null) => {
|
||||
logger.info(`window handler: execCmd: error: ${error}`);
|
||||
if (error && error.killed) {
|
||||
// processs was killed, just resolve with no data.
|
||||
return reject(error);
|
||||
|
Loading…
Reference in New Issue
Block a user