feat: upgrade Electron to 9.x (#1008)

* add support for electron 8.x

* update node-abi to latest

* 8.x: fix unit tests

* upgrade to electron 9.x

Signed-off-by: Vishwas Shashidhar <vishwas.shashidhar@symphony.com>

* rebase 9.x against master

Signed-off-by: Vishwas Shashidhar <vishwas.shashidhar@symphony.com>

* 9.x: fix windows installer files

Signed-off-by: Vishwas Shashidhar <vishwas.shashidhar@symphony.com>

* rebase 9.x against master and fix issues

Signed-off-by: Vishwas Shashidhar <vishwas.shashidhar@symphony.com>

* 9.x - update aip file

* 9.x -> downgrade to electron 9.0.0-beta.22

Signed-off-by: Vishwas Shashidhar <vishwas.shashidhar@symphony.com>

* bump up electron version to 9.0.0

Signed-off-by: Vishwas Shashidhar <vishwas.shashidhar@symphony.com>

* upgrade node-abi to support electron 9

* update package-lock.json

* 9.x -> enable signing on aip

Signed-off-by: Vishwas Shashidhar <vishwas.shashidhar@symphony.com>

* 9.x -> update package-lock.json

Signed-off-by: Vishwas Shashidhar <vishwas.shashidhar@symphony.com>

* 9.x -> fix screen share indicator mac script issue

Signed-off-by: Vishwas Shashidhar <vishwas.shashidhar@symphony.com>

* SDA-2080 - Target jss class name instead of dev defined

* SDA-2080: fix title bar issue with 9.x

* SDA-2080 - Make text notification black for 1.5 and update style template

* 9.x: add electron-osx-sign to fix 9.x build issues

Signed-off-by: Vishwas Shashidhar <vishwas.shashidhar@symphony.com>

* SDA-2091 - Only pass required data via IPC

* SDA-2092 - prevent notifications from opening in fullscreen state in MacOS

* remove post build script and upgrade electron-builder to fix os x depth first signing issues

Signed-off-by: Vishwas Shashidhar <vishwas.shashidhar@symphony.com>

Co-authored-by: Kiran Niranjan <kiran.niranjan@symphony.com>
This commit is contained in:
Vishwas Shashidhar 2020-06-01 18:08:01 +05:30 committed by GitHub
parent 6138bd69bf
commit 7d773abad3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 5515 additions and 8508 deletions

View File

@ -42,10 +42,10 @@
<ROW Property="POD_URL" Value="https://my.symphony.com" Type="4"/>
<ROW Property="POINTER_LOCK" Value="true"/>
<ROW Property="POINTER_LOCK_CB" Value="true"/>
<ROW Property="ProductCode" Value="1033:{49DECF65-B0D7-4ACB-9B19-A53DEF3AF2CE} " Type="16"/>
<ROW Property="ProductCode" Value="1033:{F2B07D22-C1A8-454C-BD46-208B20B270F8} " Type="16"/>
<ROW Property="ProductLanguage" Value="1033"/>
<ROW Property="ProductName" Value="Symphony"/>
<ROW Property="ProductVersion" Value="8.0.0" Type="32"/>
<ROW Property="ProductVersion" Value="9.0.0" Type="32"/>
<ROW Property="REBOOT" MultiBuildValue="DefaultBuild:ReallySuppress"/>
<ROW Property="RUNAPPLICATION" Value="1" Type="4"/>
<ROW Property="SecureCustomProperties" Value="OLDPRODUCTS;AI_NEWERPRODUCTFOUND"/>
@ -78,14 +78,6 @@
<ROW Directory="Symphony_Dir" Directory_Parent="ProgramMenuFolder" DefaultDir="Symphony"/>
<ROW Directory="TARGETDIR" DefaultDir="SourceDir"/>
<ROW Directory="app.asar.unpacked_Dir" Directory_Parent="resources_Dir" DefaultDir="APPASA~1.UNP|app.asar.unpacked"/>
<ROW Directory="bin_1_Dir" Directory_Parent="cld_Dir" DefaultDir="bin"/>
<ROW Directory="bin_2_Dir" Directory_Parent="diskusage_Dir" DefaultDir="bin"/>
<ROW Directory="bin_3_Dir" Directory_Parent="ffinapi_Dir" DefaultDir="bin"/>
<ROW Directory="bin_4_Dir" Directory_Parent="keyboardlayout_Dir" DefaultDir="bin"/>
<ROW Directory="bin_5_Dir" Directory_Parent="refnapi_Dir" DefaultDir="bin"/>
<ROW Directory="bin_6_Dir" Directory_Parent="ffinapi_1_Dir" DefaultDir="bin"/>
<ROW Directory="bin_7_Dir" Directory_Parent="refnapi_1_Dir" DefaultDir="bin"/>
<ROW Directory="bin_Dir" Directory_Parent="spellchecker_Dir" DefaultDir="bin"/>
<ROW Directory="build_1_Dir" Directory_Parent="cld_Dir" DefaultDir="build"/>
<ROW Directory="build_2_Dir" Directory_Parent="diskusage_Dir" DefaultDir="build"/>
<ROW Directory="build_3_Dir" Directory_Parent="ffinapi_Dir" DefaultDir="build"/>
@ -121,17 +113,9 @@
<ROW Directory="swiftsearch_Dir" Directory_Parent="node_modules_Dir" DefaultDir="SWIFT-~1|swift-search"/>
<ROW Directory="swiftshader_Dir" Directory_Parent="APPDIR" DefaultDir="SWIFTS~1|swiftshader"/>
<ROW Directory="vendor_Dir" Directory_Parent="spawnrx_Dir" DefaultDir="vendor"/>
<ROW Directory="win32x6476_1_Dir" Directory_Parent="bin_1_Dir" DefaultDir="WIN32-~1|win32-x64-76"/>
<ROW Directory="win32x6476_2_Dir" Directory_Parent="bin_2_Dir" DefaultDir="WIN32-~1|win32-x64-76"/>
<ROW Directory="win32x6476_3_Dir" Directory_Parent="bin_3_Dir" DefaultDir="WIN32-~1|win32-x64-76"/>
<ROW Directory="win32x6476_4_Dir" Directory_Parent="bin_4_Dir" DefaultDir="WIN32-~1|win32-x64-76"/>
<ROW Directory="win32x6476_5_Dir" Directory_Parent="bin_5_Dir" DefaultDir="WIN32-~1|win32-x64-76"/>
<ROW Directory="win32x6476_6_Dir" Directory_Parent="bin_6_Dir" DefaultDir="WIN32-~1|win32-x64-76"/>
<ROW Directory="win32x6476_7_Dir" Directory_Parent="bin_7_Dir" DefaultDir="WIN32-~1|win32-x64-76"/>
<ROW Directory="win32x6476_Dir" Directory_Parent="bin_Dir" DefaultDir="WIN32-~1|win32-x64-76"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.MsiCompsComponent">
<ROW Component="AI_CustomARPName" ComponentId="{83C68D22-B3BF-4F48-B0F1-7B1D9D07EF20}" Directory_="APPDIR" Attributes="4" KeyPath="DisplayName" Options="1"/>
<ROW Component="AI_CustomARPName" ComponentId="{DB6D5BC2-769E-4CEE-AF28-44E76F259CA7}" Directory_="APPDIR" Attributes="4" KeyPath="DisplayName" Options="1"/>
<ROW Component="AI_DisableModify" ComponentId="{DA4E8013-2F4B-493A-90A8-BD729DA7EE2C}" Directory_="APPDIR" Attributes="260" KeyPath="NoModify" Options="1"/>
<ROW Component="Jobber.exe" ComponentId="{761861CF-BEB6-4808-9F56-E57E4D6D98A8}" Directory_="jobber_Dir" Attributes="0" KeyPath="Jobber.exe"/>
<ROW Component="PodUrl" ComponentId="{EA80D82D-BC65-4075-A9A8-F53E2B2513CE}" Directory_="APPDIR" Attributes="260" KeyPath="PodUrl"/>
@ -149,23 +133,18 @@
<ROW Component="binding.node_1" ComponentId="{D3892889-CD3C-4428-B791-ACF717FC56FB}" Directory_="Release_7_Dir" Attributes="256" KeyPath="binding.node_1" Type="0"/>
<ROW Component="blink_image_resources_200_percent.pak" ComponentId="{56AB17A5-B690-4CBE-A39D-512381AAAFE1}" Directory_="APPDIR" Attributes="0" KeyPath="LICENSES.chromium.html" Type="0"/>
<ROW Component="build.cmd" ComponentId="{3A8ED63A-A713-4372-BB13-549B1D0A08CD}" Directory_="spawnrx_Dir" Attributes="0" KeyPath="build.cmd" Type="0"/>
<ROW Component="cld.node" ComponentId="{84AFB935-46F6-4D03-BF6E-E6CD71DD51EA}" Directory_="win32x6476_1_Dir" Attributes="256" KeyPath="cld.node" Type="0"/>
<ROW Component="cld.node_1" ComponentId="{7B6A26DB-012D-49EC-8B2E-377F2B5CC3E2}" Directory_="Release_1_Dir" Attributes="256" KeyPath="cld.node_1" Type="0"/>
<ROW Component="d3dcompiler_47.dll" ComponentId="{C7B87C02-3116-43A8-A70B-3592B70E6AC8}" Directory_="APPDIR" Attributes="256" KeyPath="d3dcompiler_47.dll"/>
<ROW Component="dictionary" ComponentId="{0337D363-6EC5-4283-98AC-0E2931979F53}" Directory_="library_Dir" Attributes="0" KeyPath="dictionary" Type="0"/>
<ROW Component="diskusage.node" ComponentId="{B5F55ED0-4495-45AC-A76E-0EFF4024EA89}" Directory_="win32x6476_2_Dir" Attributes="256" KeyPath="diskusage.node" Type="0"/>
<ROW Component="diskusage.node_1" ComponentId="{B233CADA-EDF1-46D9-B87E-1BE653EF24C4}" Directory_="Release_2_Dir" Attributes="256" KeyPath="diskusage.node_1" Type="0"/>
<ROW Component="enAU.bdic" ComponentId="{13F10BB0-1A04-4A5E-8B6D-33CA73C97AEB}" Directory_="dictionaries_Dir" Attributes="0" KeyPath="enAU.bdic" Type="0"/>
<ROW Component="ffi_bindings.node" ComponentId="{43D97DFF-79E1-4E6F-8B68-54A180815583}" Directory_="Release_3_Dir" Attributes="256" KeyPath="ffi_bindings.node" Type="0"/>
<ROW Component="ffi_bindings.node_1" ComponentId="{79A45524-4CAC-4621-8757-8ED39187769B}" Directory_="Release_6_Dir" Attributes="256" KeyPath="ffi_bindings.node_1" Type="0"/>
<ROW Component="ffinapi.node" ComponentId="{B25D650D-EDD7-42CD-A743-2FC83492D166}" Directory_="win32x6476_3_Dir" Attributes="256" KeyPath="ffinapi.node" Type="0"/>
<ROW Component="ffinapi.node_1" ComponentId="{04B6B68C-FA8E-4C11-97EB-68026A904225}" Directory_="win32x6476_6_Dir" Attributes="256" KeyPath="ffinapi.node_1" Type="0"/>
<ROW Component="ffmpeg.dll" ComponentId="{A1C4A332-3490-44D8-A5C9-9523889B488B}" Directory_="APPDIR" Attributes="256" KeyPath="ffmpeg.dll"/>
<ROW Component="index.js" ComponentId="{71228171-1778-41CB-9FA6-ACF16B3E6830}" Directory_="lib_Dir" Attributes="0" KeyPath="index.js" Type="0"/>
<ROW Component="index.js_1" ComponentId="{BA4835A9-6507-4A13-86D4-EF5B84466D08}" Directory_="src_Dir" Attributes="0" KeyPath="index.js_1" Type="0"/>
<ROW Component="index.ts" ComponentId="{D53BA0A1-FF46-4358-83CA-E7C32E31A117}" Directory_="src_1_Dir" Attributes="0" KeyPath="index.ts" Type="0"/>
<ROW Component="indexvalidatorx64.exe" ComponentId="{0266F3CF-5462-4381-9971-2353034D7E1D}" Directory_="library_Dir" Attributes="256" KeyPath="indexvalidatorx64.exe"/>
<ROW Component="keyboardlayout.node" ComponentId="{93C3F8B8-8E0A-47C7-B345-EDEE3210D744}" Directory_="win32x6476_4_Dir" Attributes="256" KeyPath="keyboardlayout.node" Type="0"/>
<ROW Component="keyboardlayoutmanager.node" ComponentId="{485FEEB1-B003-4A19-B2C9-784E402645E7}" Directory_="Release_4_Dir" Attributes="256" KeyPath="keyboardlayoutmanager.node" Type="0"/>
<ROW Component="libEGL.dll" ComponentId="{8EEC76AB-3601-4D11-B13E-32EC2A38C539}" Directory_="APPDIR" Attributes="256" KeyPath="libEGL.dll"/>
<ROW Component="libEGL.dll_1" ComponentId="{4687EB69-8743-4028-A845-592309EBB322}" Directory_="swiftshader_Dir" Attributes="256" KeyPath="libEGL.dll_1"/>
@ -173,16 +152,13 @@
<ROW Component="libGLESv2.dll_1" ComponentId="{6CEEACB7-8686-4DF1-B442-B7EE93F6132F}" Directory_="swiftshader_Dir" Attributes="256" KeyPath="libGLESv2.dll_1"/>
<ROW Component="libsymphonysearchx64.dll" ComponentId="{A8C99D17-FA62-4996-8FAE-52D1DCF9BF26}" Directory_="library_Dir" Attributes="256" KeyPath="libsymphonysearchx64.dll"/>
<ROW Component="lz4winx64.exe" ComponentId="{8B78B313-EAE9-4533-AFEB-56F9E0CA73A1}" Directory_="library_Dir" Attributes="256" KeyPath="lz4winx64.exe"/>
<ROW Component="refnapi.node" ComponentId="{3892C3AF-B2AD-4DF8-9D05-C5DC05CCCD08}" Directory_="win32x6476_5_Dir" Attributes="256" KeyPath="refnapi.node" Type="0"/>
<ROW Component="refnapi.node_1" ComponentId="{CFF6BE64-E62F-4D82-8D02-A394A6393228}" Directory_="win32x6476_7_Dir" Attributes="256" KeyPath="refnapi.node_1" Type="0"/>
<ROW Component="spellchecker.node" ComponentId="{686D99C1-7B79-44BE-A6FB-91B6D302DB8B}" Directory_="win32x6476_Dir" Attributes="256" KeyPath="spellchecker.node" Type="0"/>
<ROW Component="spellchecker.node_1" ComponentId="{4D9D9DBA-2F38-4E2A-BEC2-9CC7BD069637}" Directory_="Release_Dir" Attributes="256" KeyPath="spellchecker.node_1" Type="0"/>
<ROW Component="tarwin.exe" ComponentId="{4C98F3B1-1A73-4761-86C0-DE0FC18A8800}" Directory_="library_Dir" Attributes="0" KeyPath="tarwin.exe"/>
<ROW Component="vk_swiftshader.dll" ComponentId="{A9EB979C-64AB-4814-8BBC-48A5D768338C}" Directory_="APPDIR" Attributes="256" KeyPath="vk_swiftshader.dll"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.MsiFeatsComponent">
<ROW Feature="D564007E3BBE4F85950A09B470A7CA65" Title="Visual C++ Redistributable for Visual Studio 2013 x86" Description="Visual C++ Redistributable for Visual Studio 2013 x86" Display="3" Level="1" Attributes="0"/>
<ROW Feature="MainFeature" Title="MainFeature" Description="Description" Display="1" Level="1" Directory_="APPDIR" Attributes="0" Components="AI_CustomARPName AI_DisableModify Jobber.exe PodUrl ProductInformation ScreenShareIndicatorFrame.exe ScreenSnippet.exe Symphony Symphony.config Symphony.exe _ __1 am.pak appupdate.yml binding.node binding.node_1 blink_image_resources_200_percent.pak build.cmd cld.node cld.node_1 d3dcompiler_47.dll dictionary diskusage.node diskusage.node_1 enAU.bdic ffi_bindings.node ffi_bindings.node_1 ffinapi.node ffinapi.node_1 ffmpeg.dll index.js index.js_1 index.ts indexvalidatorx64.exe keyboardlayout.node keyboardlayoutmanager.node libEGL.dll libEGL.dll_1 libGLESv2.dll libGLESv2.dll_1 libsymphonysearchx64.dll lz4winx64.exe refnapi.node refnapi.node_1 spellchecker.node spellchecker.node_1 tarwin.exe vk_swiftshader.dll"/>
<ROW Feature="MainFeature" Title="MainFeature" Description="Description" Display="1" Level="1" Directory_="APPDIR" Attributes="0" Components="AI_CustomARPName AI_DisableModify Jobber.exe PodUrl ProductInformation ScreenShareIndicatorFrame.exe ScreenSnippet.exe Symphony Symphony.config Symphony.exe _ __1 am.pak appupdate.yml binding.node binding.node_1 blink_image_resources_200_percent.pak build.cmd cld.node_1 d3dcompiler_47.dll dictionary diskusage.node_1 enAU.bdic ffi_bindings.node ffi_bindings.node_1 ffmpeg.dll index.js index.js_1 index.ts indexvalidatorx64.exe keyboardlayoutmanager.node libEGL.dll libEGL.dll_1 libGLESv2.dll libGLESv2.dll_1 libsymphonysearchx64.dll lz4winx64.exe spellchecker.node_1 tarwin.exe vk_swiftshader.dll"/>
<ATTRIBUTE name="CurrentFeature" value="MainFeature"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.MsiFilesComponent">
@ -207,15 +183,13 @@
<ROW File="ca.pak" Component_="am.pak" FileName="ca.pak" Attributes="0" SourcePath="..\..\dist\win-unpacked\locales\ca.pak" SelfReg="false" NextFile="cs.pak"/>
<ROW File="chrome_100_percent.pak" Component_="blink_image_resources_200_percent.pak" FileName="CHROME~1.PAK|chrome_100_percent.pak" Attributes="0" SourcePath="..\..\dist\win-unpacked\chrome_100_percent.pak" SelfReg="false" NextFile="chrome_200_percent.pak"/>
<ROW File="chrome_200_percent.pak" Component_="blink_image_resources_200_percent.pak" FileName="CHROME~2.PAK|chrome_200_percent.pak" Attributes="0" SourcePath="..\..\dist\win-unpacked\chrome_200_percent.pak" SelfReg="false" NextFile="resources.pak"/>
<ROW File="cld.node" Component_="cld.node" FileName="CLD~1.NOD|cld.node" Attributes="0" SourcePath="..\..\dist\win-unpacked\resources\app.asar.unpacked\node_modules\cld\bin\win32-x64-76\cld.node" SelfReg="false" NextFile="cld.node_1"/>
<ROW File="cld.node_1" Component_="cld.node_1" FileName="CLD~1.NOD|cld.node" Attributes="0" SourcePath="..\..\dist\win-unpacked\resources\app.asar.unpacked\node_modules\cld\build\Release\cld.node" SelfReg="false" NextFile="diskusage.node"/>
<ROW File="cld.node_1" Component_="cld.node_1" FileName="CLD~1.NOD|cld.node" Attributes="0" SourcePath="..\..\dist\win-unpacked\resources\app.asar.unpacked\node_modules\cld\build\Release\cld.node" SelfReg="false" NextFile="diskusage.node_1"/>
<ROW File="cs.pak" Component_="am.pak" FileName="cs.pak" Attributes="0" SourcePath="..\..\dist\win-unpacked\locales\cs.pak" SelfReg="false" NextFile="da.pak"/>
<ROW File="d3dcompiler_47.dll" Component_="d3dcompiler_47.dll" FileName="D3DCOM~1.DLL|d3dcompiler_47.dll" Attributes="0" SourcePath="..\..\dist\win-unpacked\d3dcompiler_47.dll" SelfReg="false" NextFile="ffmpeg.dll"/>
<ROW File="da.pak" Component_="am.pak" FileName="da.pak" Attributes="0" SourcePath="..\..\dist\win-unpacked\locales\da.pak" SelfReg="false" NextFile="de.pak"/>
<ROW File="de.pak" Component_="am.pak" FileName="de.pak" Attributes="0" SourcePath="..\..\dist\win-unpacked\locales\de.pak" SelfReg="false" NextFile="el.pak"/>
<ROW File="dictionary" Component_="dictionary" FileName="DICTIO~1|dictionary" Attributes="0" SourcePath="..\..\library\dictionary" SelfReg="false" NextFile="chrome_100_percent.pak"/>
<ROW File="diskusage.node" Component_="diskusage.node" FileName="DISKUS~1.NOD|diskusage.node" Attributes="0" SourcePath="..\..\dist\win-unpacked\resources\app.asar.unpacked\node_modules\diskusage\bin\win32-x64-76\diskusage.node" SelfReg="false" NextFile="diskusage.node_1"/>
<ROW File="diskusage.node_1" Component_="diskusage.node_1" FileName="DISKUS~1.NOD|diskusage.node" Attributes="0" SourcePath="..\..\dist\win-unpacked\resources\app.asar.unpacked\node_modules\diskusage\build\Release\diskusage.node" SelfReg="false" NextFile="ffinapi.node"/>
<ROW File="diskusage.node_1" Component_="diskusage.node_1" FileName="DISKUS~1.NOD|diskusage.node" Attributes="0" SourcePath="..\..\dist\win-unpacked\resources\app.asar.unpacked\node_modules\diskusage\build\Release\diskusage.node" SelfReg="false" NextFile="ffi_bindings.node"/>
<ROW File="el.pak" Component_="am.pak" FileName="el.pak" Attributes="0" SourcePath="..\..\dist\win-unpacked\locales\el.pak" SelfReg="false" NextFile="enGB.pak"/>
<ROW File="enAU.bdic" Component_="enAU.bdic" FileName="EN-AU~1.BDI|en-AU.bdic" Attributes="0" SourcePath="..\..\dist\win-unpacked\dictionaries\en-AU.bdic" SelfReg="false" NextFile="enCA.bdic"/>
<ROW File="enCA.bdic" Component_="enAU.bdic" FileName="EN-CA~1.BDI|en-CA.bdic" Attributes="0" SourcePath="..\..\dist\win-unpacked\dictionaries\en-CA.bdic" SelfReg="false" NextFile="enGB.bdic"/>
@ -228,10 +202,8 @@
<ROW File="esdoc.json" Component_="build.cmd" FileName="ESDOC~1.JSO|esdoc.json" Attributes="0" SourcePath="..\..\dist\win-unpacked\resources\app.asar.unpacked\node_modules\spawn-rx\esdoc.json" SelfReg="false" NextFile="index.js"/>
<ROW File="et.pak" Component_="am.pak" FileName="et.pak" Attributes="0" SourcePath="..\..\dist\win-unpacked\locales\et.pak" SelfReg="false" NextFile="fa.pak"/>
<ROW File="fa.pak" Component_="am.pak" FileName="fa.pak" Attributes="0" SourcePath="..\..\dist\win-unpacked\locales\fa.pak" SelfReg="false" NextFile="fi.pak"/>
<ROW File="ffi_bindings.node" Component_="ffi_bindings.node" FileName="FFI_BI~1.NOD|ffi_bindings.node" Attributes="0" SourcePath="..\..\dist\win-unpacked\resources\app.asar.unpacked\node_modules\ffi-napi\build\Release\ffi_bindings.node" SelfReg="false" NextFile="keyboardlayout.node"/>
<ROW File="ffi_bindings.node_1" Component_="ffi_bindings.node_1" FileName="FFI_BI~1.NOD|ffi_bindings.node" Attributes="0" SourcePath="..\..\dist\win-unpacked\resources\app.asar.unpacked\node_modules\swift-search\node_modules\ffi-napi\build\Release\ffi_bindings.node" SelfReg="false" NextFile="refnapi.node_1"/>
<ROW File="ffinapi.node" Component_="ffinapi.node" FileName="FFI-NA~1.NOD|ffi-napi.node" Attributes="0" SourcePath="..\..\dist\win-unpacked\resources\app.asar.unpacked\node_modules\ffi-napi\bin\win32-x64-76\ffi-napi.node" SelfReg="false" NextFile="ffi_bindings.node"/>
<ROW File="ffinapi.node_1" Component_="ffinapi.node_1" FileName="FFI-NA~1.NOD|ffi-napi.node" Attributes="0" SourcePath="..\..\dist\win-unpacked\resources\app.asar.unpacked\node_modules\swift-search\node_modules\ffi-napi\bin\win32-x64-76\ffi-napi.node" SelfReg="false" NextFile="ffi_bindings.node_1"/>
<ROW File="ffi_bindings.node" Component_="ffi_bindings.node" FileName="FFI_BI~1.NOD|ffi_bindings.node" Attributes="0" SourcePath="..\..\dist\win-unpacked\resources\app.asar.unpacked\node_modules\ffi-napi\build\Release\ffi_bindings.node" SelfReg="false" NextFile="keyboardlayoutmanager.node"/>
<ROW File="ffi_bindings.node_1" Component_="ffi_bindings.node_1" FileName="FFI_BI~1.NOD|ffi_bindings.node" Attributes="0" SourcePath="..\..\dist\win-unpacked\resources\app.asar.unpacked\node_modules\swift-search\node_modules\ffi-napi\build\Release\ffi_bindings.node" SelfReg="false" NextFile="binding.node_1"/>
<ROW File="ffmpeg.dll" Component_="ffmpeg.dll" FileName="ffmpeg.dll" Attributes="0" SourcePath="..\..\dist\win-unpacked\ffmpeg.dll" SelfReg="false" NextFile="icudtl.dat"/>
<ROW File="fi.pak" Component_="am.pak" FileName="fi.pak" Attributes="0" SourcePath="..\..\dist\win-unpacked\locales\fi.pak" SelfReg="false" NextFile="fil.pak"/>
<ROW File="fil.pak" Component_="am.pak" FileName="fil.pak" Attributes="0" SourcePath="..\..\dist\win-unpacked\locales\fil.pak" SelfReg="false" NextFile="fr.pak"/>
@ -250,14 +222,13 @@
<ROW File="indexvalidatorx64.exe" Component_="indexvalidatorx64.exe" FileName="INDEXV~1.EXE|indexvalidator-x64.exe" Attributes="0" SourcePath="..\..\library\indexvalidator-x64.exe" SelfReg="false" NextFile="libsymphonysearchx64.dll" DigSign="true"/>
<ROW File="it.pak" Component_="am.pak" FileName="it.pak" Attributes="0" SourcePath="..\..\dist\win-unpacked\locales\it.pak" SelfReg="false" NextFile="ja.pak"/>
<ROW File="ja.pak" Component_="am.pak" FileName="ja.pak" Attributes="0" SourcePath="..\..\dist\win-unpacked\locales\ja.pak" SelfReg="false" NextFile="kn.pak"/>
<ROW File="keyboardlayout.node" Component_="keyboardlayout.node" FileName="KEYBOA~1.NOD|keyboard-layout.node" Attributes="0" SourcePath="..\..\dist\win-unpacked\resources\app.asar.unpacked\node_modules\keyboard-layout\bin\win32-x64-76\keyboard-layout.node" SelfReg="false" NextFile="keyboardlayoutmanager.node"/>
<ROW File="keyboardlayoutmanager.node" Component_="keyboardlayoutmanager.node" FileName="KEYBOA~1.NOD|keyboard-layout-manager.node" Attributes="0" SourcePath="..\..\dist\win-unpacked\resources\app.asar.unpacked\node_modules\keyboard-layout\build\Release\keyboard-layout-manager.node" SelfReg="false" NextFile="refnapi.node"/>
<ROW File="keyboardlayoutmanager.node" Component_="keyboardlayoutmanager.node" FileName="KEYBOA~1.NOD|keyboard-layout-manager.node" Attributes="0" SourcePath="..\..\dist\win-unpacked\resources\app.asar.unpacked\node_modules\keyboard-layout\build\Release\keyboard-layout-manager.node" SelfReg="false" NextFile="binding.node"/>
<ROW File="kn.pak" Component_="am.pak" FileName="kn.pak" Attributes="0" SourcePath="..\..\dist\win-unpacked\locales\kn.pak" SelfReg="false" NextFile="ko.pak"/>
<ROW File="ko.pak" Component_="am.pak" FileName="ko.pak" Attributes="0" SourcePath="..\..\dist\win-unpacked\locales\ko.pak" SelfReg="false" NextFile="lt.pak"/>
<ROW File="libEGL.dll" Component_="libEGL.dll" FileName="libEGL.dll" Attributes="0" SourcePath="..\..\dist\win-unpacked\libEGL.dll" SelfReg="false" NextFile="libGLESv2.dll"/>
<ROW File="libEGL.dll_1" Component_="libEGL.dll_1" FileName="libEGL.dll" Attributes="0" SourcePath="..\..\dist\win-unpacked\swiftshader\libEGL.dll" SelfReg="false" NextFile="libGLESv2.dll_1"/>
<ROW File="libGLESv2.dll" Component_="libGLESv2.dll" FileName="LIBGLE~1.DLL|libGLESv2.dll" Attributes="0" SourcePath="..\..\dist\win-unpacked\libGLESv2.dll" SelfReg="false" NextFile="LICENSE.electron.txt"/>
<ROW File="libGLESv2.dll_1" Component_="libGLESv2.dll_1" FileName="LIBGLE~1.DLL|libGLESv2.dll" Attributes="0" SourcePath="..\..\dist\win-unpacked\swiftshader\libGLESv2.dll" SelfReg="false" NextFile="ffinapi.node_1"/>
<ROW File="libGLESv2.dll_1" Component_="libGLESv2.dll_1" FileName="LIBGLE~1.DLL|libGLESv2.dll" Attributes="0" SourcePath="..\..\dist\win-unpacked\swiftshader\libGLESv2.dll" SelfReg="false" NextFile="ffi_bindings.node_1"/>
<ROW File="libsymphonysearchx64.dll" Component_="libsymphonysearchx64.dll" FileName="LIBSYM~1.DLL|libsymphonysearch-x64.dll" Attributes="0" SourcePath="..\..\library\libsymphonysearch-x64.dll" SelfReg="false" NextFile="lz4winx64.exe"/>
<ROW File="lt.pak" Component_="am.pak" FileName="lt.pak" Attributes="0" SourcePath="..\..\dist\win-unpacked\locales\lt.pak" SelfReg="false" NextFile="lv.pak"/>
<ROW File="lv.pak" Component_="am.pak" FileName="lv.pak" Attributes="0" SourcePath="..\..\dist\win-unpacked\locales\lv.pak" SelfReg="false" NextFile="ml.pak"/>
@ -271,16 +242,13 @@
<ROW File="pl.pak" Component_="am.pak" FileName="pl.pak" Attributes="0" SourcePath="..\..\dist\win-unpacked\locales\pl.pak" SelfReg="false" NextFile="ptBR.pak"/>
<ROW File="ptBR.pak" Component_="am.pak" FileName="pt-BR.pak" Attributes="0" SourcePath="..\..\dist\win-unpacked\locales\pt-BR.pak" SelfReg="false" NextFile="ptPT.pak"/>
<ROW File="ptPT.pak" Component_="am.pak" FileName="pt-PT.pak" Attributes="0" SourcePath="..\..\dist\win-unpacked\locales\pt-PT.pak" SelfReg="false" NextFile="ro.pak"/>
<ROW File="refnapi.node" Component_="refnapi.node" FileName="REF-NA~1.NOD|ref-napi.node" Attributes="0" SourcePath="..\..\dist\win-unpacked\resources\app.asar.unpacked\node_modules\ref-napi\bin\win32-x64-76\ref-napi.node" SelfReg="false" NextFile="binding.node"/>
<ROW File="refnapi.node_1" Component_="refnapi.node_1" FileName="REF-NA~1.NOD|ref-napi.node" Attributes="0" SourcePath="..\..\dist\win-unpacked\resources\app.asar.unpacked\node_modules\swift-search\node_modules\ref-napi\bin\win32-x64-76\ref-napi.node" SelfReg="false" NextFile="binding.node_1"/>
<ROW File="resources.pak" Component_="blink_image_resources_200_percent.pak" FileName="RESOUR~1.PAK|resources.pak" Attributes="0" SourcePath="..\..\dist\win-unpacked\resources.pak" SelfReg="false" NextFile="snapshot_blob.bin"/>
<ROW File="ro.pak" Component_="am.pak" FileName="ro.pak" Attributes="0" SourcePath="..\..\dist\win-unpacked\locales\ro.pak" SelfReg="false" NextFile="ru.pak"/>
<ROW File="ru.pak" Component_="am.pak" FileName="ru.pak" Attributes="0" SourcePath="..\..\dist\win-unpacked\locales\ru.pak" SelfReg="false" NextFile="sk.pak"/>
<ROW File="sk.pak" Component_="am.pak" FileName="sk.pak" Attributes="0" SourcePath="..\..\dist\win-unpacked\locales\sk.pak" SelfReg="false" NextFile="sl.pak"/>
<ROW File="sl.pak" Component_="am.pak" FileName="sl.pak" Attributes="0" SourcePath="..\..\dist\win-unpacked\locales\sl.pak" SelfReg="false" NextFile="sr.pak"/>
<ROW File="snapshot_blob.bin" Component_="blink_image_resources_200_percent.pak" FileName="SNAPSH~1.BIN|snapshot_blob.bin" Attributes="0" SourcePath="..\..\dist\win-unpacked\snapshot_blob.bin" SelfReg="false" NextFile="ScreenShareIndicatorFrame.exe"/>
<ROW File="spellchecker.node" Component_="spellchecker.node" FileName="SPELLC~1.NOD|spellchecker.node" Attributes="0" SourcePath="..\..\dist\win-unpacked\resources\app.asar.unpacked\node_modules\@felixrieseberg\spellchecker\bin\win32-x64-76\spellchecker.node" SelfReg="false" NextFile="spellchecker.node_1"/>
<ROW File="spellchecker.node_1" Component_="spellchecker.node_1" FileName="SPELLC~1.NOD|spellchecker.node" Attributes="0" SourcePath="..\..\dist\win-unpacked\resources\app.asar.unpacked\node_modules\@felixrieseberg\spellchecker\build\Release\spellchecker.node" SelfReg="false" NextFile="cld.node"/>
<ROW File="spellchecker.node_1" Component_="spellchecker.node_1" FileName="SPELLC~1.NOD|spellchecker.node" Attributes="0" SourcePath="..\..\dist\win-unpacked\resources\app.asar.unpacked\node_modules\@felixrieseberg\spellchecker\build\Release\spellchecker.node" SelfReg="false" NextFile="cld.node_1"/>
<ROW File="sr.pak" Component_="am.pak" FileName="sr.pak" Attributes="0" SourcePath="..\..\dist\win-unpacked\locales\sr.pak" SelfReg="false" NextFile="sv.pak"/>
<ROW File="sv.pak" Component_="am.pak" FileName="sv.pak" Attributes="0" SourcePath="..\..\dist\win-unpacked\locales\sv.pak" SelfReg="false" NextFile="sw.pak"/>
<ROW File="sw.pak" Component_="am.pak" FileName="sw.pak" Attributes="0" SourcePath="..\..\dist\win-unpacked\locales\sw.pak" SelfReg="false" NextFile="ta.pak"/>
@ -296,7 +264,7 @@
<ROW File="v8_context_snapshot.bin" Component_="blink_image_resources_200_percent.pak" FileName="V8_CON~1.BIN|v8_context_snapshot.bin" Attributes="0" SourcePath="..\..\dist\win-unpacked\v8_context_snapshot.bin" SelfReg="false" NextFile="titleBarStyles.css"/>
<ROW File="vi.pak" Component_="am.pak" FileName="vi.pak" Attributes="0" SourcePath="..\..\dist\win-unpacked\locales\vi.pak" SelfReg="false" NextFile="zhCN.pak"/>
<ROW File="vk_swiftshader.dll" Component_="vk_swiftshader.dll" FileName="VK_SWI~1.DLL|vk_swiftshader.dll" Attributes="0" SourcePath="..\..\dist\win-unpacked\vk_swiftshader.dll" SelfReg="false" NextFile="vk_swiftshader_icd.json"/>
<ROW File="vk_swiftshader_icd.json" Component_="blink_image_resources_200_percent.pak" FileName="VK_SWI~1.JSO|vk_swiftshader_icd.json" Attributes="0" SourcePath="..\..\dist\win-unpacked\vk_swiftshader_icd.json" SelfReg="false" NextFile="spellchecker.node"/>
<ROW File="vk_swiftshader_icd.json" Component_="blink_image_resources_200_percent.pak" FileName="VK_SWI~1.JSO|vk_swiftshader_icd.json" Attributes="0" SourcePath="..\..\dist\win-unpacked\vk_swiftshader_icd.json" SelfReg="false" NextFile="spellchecker.node_1"/>
<ROW File="zhCN.pak" Component_="am.pak" FileName="zh-CN.pak" Attributes="0" SourcePath="..\..\dist\win-unpacked\locales\zh-CN.pak" SelfReg="false" NextFile="zhTW.pak"/>
<ROW File="zhTW.pak" Component_="am.pak" FileName="zh-TW.pak" Attributes="0" SourcePath="..\..\dist\win-unpacked\locales\zh-TW.pak" SelfReg="false" NextFile="app.asar"/>
</COMPONENT>

13931
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
{
"name": "symphony",
"productName": "Symphony",
"version": "8.0.0",
"version": "9.0.0",
"clientVersion": "2.0.1",
"buildNumber": "0",
"searchAPIVersion": "1.55.3",
@ -120,10 +120,11 @@
"browserify": "16.5.1",
"cross-env": "5.2.0",
"del": "3.0.0",
"electron": "8.2.5",
"electron-builder": "21.2.0",
"electron": "9.0.0",
"electron-builder": "22.7.0",
"electron-builder-squirrel-windows": "20.38.3",
"electron-icon-maker": "0.0.4",
"electron-osx-sign": "^0.4.16",
"electron-rebuild": "1.10.1",
"enzyme": "3.9.0",
"enzyme-adapter-react-16": "1.10.0",
@ -136,7 +137,7 @@
"jest-html-reporter": "3.0.0",
"less": "3.8.1",
"ncp": "2.0.0",
"node-abi": "^2.15.0",
"node-abi": "^2.17.0",
"npm-run-all": "4.1.5",
"robotjs": "0.6.0",
"run-script-os": "1.0.7",

View File

@ -73,7 +73,6 @@ 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);")
@ -81,6 +80,9 @@ PKG_VERSION=$(node -e "console.log(require('./package.json').version);")
echo "Installing dependencies"
npm install
echo "Signing screen share indicator"
codesign --force --options runtime -s "Developer ID Application: Symphony Communication Services LLC" node_modules/screen-share-indicator-frame/SymphonyScreenShareIndicator
# Run Snyk Security Tests
echo "Running snyk security tests"
snyk test --file=package.json --org="$SNYK_ORG"

View File

@ -70,15 +70,18 @@ class DownloadHandler {
*
* @param id {string} File ID
*/
public openFile(id: string): void {
public async openFile(id: string): Promise<void> {
const filePath = this.getFilePath(id);
const openResponse = fs.existsSync(`${filePath}`) && shell.openItem(`${filePath}`);
const openResponse = fs.existsSync(`${filePath}`);
if (openResponse) {
return;
const result = await shell.openPath(`${filePath}`);
if (result === '') {
return;
}
}
DownloadHandler.showDialog();
await DownloadHandler.showDialog();
}
/**

View File

@ -728,7 +728,6 @@ export class WindowHandler {
this.screenPickerWindow.webContents.setZoomFactor(1);
this.screenPickerWindow.webContents.setVisualZoomLevelLimits(1, 1);
this.screenPickerWindow.webContents.setLayoutZoomLevelLimits(0, 0);
this.screenPickerWindow.webContents.send('screen-picker-data', {sources, id});
this.addWindow(opts.winKey, this.screenPickerWindow);

View File

@ -355,7 +355,7 @@ export const getBounds = (winPos: ICustomRectangle | Electron.Rectangle | undefi
* @param type
* @param filePath
*/
export const downloadManagerAction = (type, filePath): void => {
export const downloadManagerAction = async (type, filePath): Promise<void> => {
const focusedWindow = electron.BrowserWindow.getFocusedWindow();
const message = i18n.t('The file you are trying to open cannot be found in the specified path.', DOWNLOAD_MANAGER_NAMESPACE)();
const title = i18n.t('File not Found', DOWNLOAD_MANAGER_NAMESPACE)();
@ -365,11 +365,12 @@ export const downloadManagerAction = (type, filePath): void => {
}
if (type === 'open') {
let openResponse = fs.existsSync(`${filePath}`);
if (openResponse) {
openResponse = electron.shell.openItem(`${filePath}`);
const fileExists = fs.existsSync(`${filePath}`);
let openFileResponse;
if (fileExists) {
openFileResponse = await electron.shell.openPath(filePath);
}
if (!openResponse && focusedWindow && !focusedWindow.isDestroyed()) {
if ((openFileResponse !== '') && focusedWindow && !focusedWindow.isDestroyed()) {
electron.dialog.showMessageBox(focusedWindow, {
message,
title,