Commit graph

483 commits

Author SHA1 Message Date
Abhinav 03be62a082 add renderer spike logging 2023-01-11 14:35:40 +05:30
Abhinav 71e96df454 log sudden increase in memory and app using more than high limit 2023-01-11 13:58:46 +05:30
Abhinav 6a47f6d7ea log ffmpeg execution time 2023-01-11 11:19:56 +05:30
Abhinav d197e82101 update spike detection logic 2023-01-10 21:58:54 +05:30
Abhinav ab09f5e759 fix api 2023-01-10 18:50:49 +05:30
Abhinav e61b14c373 update writeStream to async function 2023-01-10 18:50:30 +05:30
Abhinav 6773c07f2d change write-temp-file to get-temp-file-path 2023-01-10 18:24:03 +05:30
Abhinav 0e8ff75645 use stream to write file instead of loading whole file 2023-01-10 18:23:39 +05:30
Abhinav 69392d9ee9 added loop to retry if tempPath already exists 2023-01-10 18:18:23 +05:30
Abhinav a72af289ad wait for stream to finish before returning 2023-01-10 18:15:54 +05:30
Abhinav ed0568a9a4 add getNormalizedWebFrameResourceUsage util 2023-01-06 23:01:37 +05:30
Abhinav dd7081478f increase log size to 50MB 2023-01-06 22:44:07 +05:30
Abhinav ae8326a773 remove getSystemMemoryInfo as free memory reported is incorrect 2023-01-06 22:41:33 +05:30
Abhinav 7fabf2c5c9 add getNormalizedHeapStatistics util 2023-01-06 22:40:20 +05:30
Abhinav 4c36a3b808 prevent nan 2023-01-06 21:56:39 +05:30
Abhinav d18462535e no need of platform check 2023-01-06 17:01:30 +05:30
Abhinav 54fc0705cd fix units and add spike logger 2023-01-06 14:58:23 +05:30
Abhinav a66d720dc2 convert process stats to human readable format value 2023-01-06 13:25:50 +05:30
Abhinav d71d65073f rename constant 2023-01-06 13:09:57 +05:30
Abhinav 9117926b67 use new variable for escaped command 2023-01-06 12:38:33 +05:30
Abhinav d8b81028b3 remove console log 2023-01-06 12:24:35 +05:30
Abhinav efbdf66bfd reduce max quality 2023-01-06 12:20:48 +05:30
Abhinav 7a41aee5dd fix thumbnail generation cmds 2023-01-06 10:58:35 +05:30
Abhinav d8c69c5acc add size parameter 2023-01-05 10:53:57 +05:30
Abhinav 6fa796bc0b use find and replaceAll for SAMPLE_SIZE_PLACEHOLDER MAX_DIMENSION_PLACEHOLDER 2023-01-03 14:10:51 +05:30
Abhinav 794c3bf007 refactor code to use command template and escape shell to prevent unescaped characters 2023-01-03 13:34:12 +05:30
Abhinav 28af6873f0 no need to export constants 2023-01-03 13:29:42 +05:30
Abhinav 0ec70ed777 update log 2023-01-03 13:28:14 +05:30
Abhinav e579caca60 better names 2023-01-03 11:38:44 +05:30
Abhinav 43a1af3600 wrap file paths in quotes 2023-01-03 11:06:50 +05:30
Abhinav f3f7288deb add image generation api 2023-01-02 21:08:08 +05:30
Abhinav 1e7292d8ba check file exists before reading 2022-12-28 11:28:07 +05:30
Abhinav d0ce520846 add force flag to rmSync calls to prevent not found errors 2022-12-28 10:19:09 +05:30
Abhinav da3dffbce8 fix path on windows system 2022-12-21 16:12:56 +05:30
Abhinav b9be82ca7a fix error logger 2022-12-20 19:36:10 +05:30
Abhinav f5bcf1d485 add try catch wrapper 2022-12-20 19:29:26 +05:30
Abhinav 7fd8582f44 fix readStreamData getting stuck when its called before end but after last readable event called 2022-12-20 19:29:02 +05:30
Abhinav ebcf54d58e pass zip name as the base path as for zip files 2022-12-20 11:02:01 +05:30
Abhinav 049d318380 fixed build 2022-12-17 11:46:53 +05:30
Abhinav Kumar f5ee5eca27
Merge pull request #113 from ente-io/image-magick-static
Image magick static
2022-12-13 14:10:53 +05:30
Manav 8990f12140 Use a template task bar icon on macOS
On macOS, Electron supports providing a "template" icon that the system will
then automatically color appropriately depending on the light / dark theme.

> Template images consist of black and an alpha channel. Template images are not
  intended to be used as standalone images and are usually mixed with other
  content to create the desired final appearance.
>
>
> The most common case is to use template images for a menu bar icon, so it can
  adapt to both light and dark menu bars.
>
> Note: Template image is only supported on macOS.
>
> To mark an image as a template image, its filename should end with the word Template.

Maybe the same icon can also be used in other platforms, but I'm not aware of
why the existing icon is white, so I've added a separate file so that the rest
of the platforms remain untouched, and only macOS gets this light / dark mode
fix.

References:

* https://www.electronjs.org/docs/latest/api/tray
* https://www.electronjs.org/docs/latest/api/native-image#template-image
2022-12-09 13:17:04 +05:30
Abhinav f1e5ae75bb rename heicConverter 2022-12-03 15:55:44 +05:30
Abhinav 923e890b41 remove type 2022-12-03 14:26:33 +05:30
Abhinav 7a59818e58 getImagickStaticPath 2022-12-03 14:26:04 +05:30
Abhinav 750bd46315 add support to convert heic using imageMagick on linux 2022-12-03 14:26:02 +05:30
Abhinav f181865e64 refactor platform check utils 2022-12-03 10:11:45 +05:30
Abhinav fbbb38b261 Merge branch 'main' into check-for-update-every-day-once 2022-11-29 20:39:35 +05:30
Abhinav 7b317947a6 add mute update notification api and rename skipAppVersion api to skipAppUpdate 2022-11-29 20:30:30 +05:30
Abhinav Kumar 3fdf86dab7
Merge pull request #96 from ente-io/update-electron-to-latest
Update electron to latest
2022-11-25 18:51:00 +05:30
Abhinav 202b36f5d4 Merge branch 'main' into add-more-logs 2022-11-23 13:15:55 +05:30
Abhinav Kumar f1b1b88085
Merge pull request #110 from ente-io/fix-ffmpeg-static-for-zip-upoad
Fix ffmpeg static for zip upload
2022-11-23 13:13:47 +05:30
Abhinav b13f0e6e73 Merge branch 'main' into update-electron-to-latest 2022-11-21 18:53:50 +05:30
Abhinav 091714757f add close for mac too 2022-11-21 17:00:36 +05:30
Abhinav 3d1e388877 only use inputFile path if its valid , else fallback to creating a temp copy 2022-11-21 15:23:48 +05:30
Abhinav fec86c8018 update format 2022-11-17 19:52:53 +05:30
Abhinav f0cad329c8 add utc diff in log time 2022-11-17 19:40:38 +05:30
Abhinav 16c3fbf2f9 add heap and processMemory Info stats 2022-11-17 15:24:36 +05:30
Abhinav eb4049860b add a cron to check for updates once every day 2022-11-17 14:54:57 +05:30
Abhinav 1cbd046af3 dont sent true 2022-11-17 14:50:24 +05:30
Abhinav 82b5913480 update timeout 2022-11-17 14:34:07 +05:30
Abhinav e838beb54f rename 2022-11-17 14:33:14 +05:30
Abhinav c766e6c465 remove eslint disable 2022-11-17 14:32:23 +05:30
Abhinav 023a261e30 Merge branch 'main' into add-more-logs 2022-11-17 14:31:20 +05:30
Abhinav 70bf803619 more logs 2022-11-17 14:29:40 +05:30
Abhinav 4813b541f8 setup logging 2022-11-17 14:29:21 +05:30
Abhinav 39d92e2b96 add process stats logs 2022-11-17 14:28:55 +05:30
Abhinav e1a575598c add user triggered app quit logs 2022-11-17 12:56:25 +05:30
Abhinav de560de204 revert logging change 2022-11-16 16:12:20 +05:30
Abhinav 12f245f37f refactor code 2022-11-16 16:10:44 +05:30
Abhinav 396ef8f31a udpate ipc comms 2022-11-16 15:49:21 +05:30
Abhinav 5d3ecdc9e6 remove unneeded code 2022-11-16 15:47:22 +05:30
Abhinav bdaa505518 moved temp file creation logic to api 2022-11-16 15:47:12 +05:30
Abhinav 3e28a7cb82 added temp file read and write util 2022-11-16 15:43:25 +05:30
Abhinav cad1ccfbfd fix runFFmpeg on non disk file 2022-11-16 14:02:02 +05:30
Abhinav 75ce357b72 update to handle inputFilePath missing 2022-11-14 20:37:13 +05:30
Abhinav 26b979eab2 fix comment 2022-11-14 19:30:39 +05:30
Abhinav 19a3c38bf1 refactor import 2022-11-14 19:27:47 +05:30
Abhinav 2875dbce07 update to pass filePath instead of whole File 2022-11-14 18:44:57 +05:30
Abhinav 756b04750e add ipc comms for runFFmpegCmd 2022-11-14 17:01:06 +05:30
Abhinav 4e98fdd3c8 update ffmpeg api to generic run 2022-11-14 14:28:22 +05:30
Abhinav 0a82e7a3ca use promisify util to convert child exec to async 2022-11-14 11:23:41 +05:30
Abhinav 8035576337 add ffmpeg static video thumbnail generation api 2022-11-14 11:11:03 +05:30
Abhinav f81b852fb4 refactor code and create temp util 2022-11-14 11:06:25 +05:30
Abhinav Kumar 997b13121b
Merge pull request #99 from ente-io/release-version-info
add get app version api
2022-11-10 17:07:59 +05:30
Abhinav e3d4ffb767 add get app version api 2022-11-10 16:47:07 +05:30
Abhinav c9bfc30840 set-global-sentry-user-id 2022-11-10 16:15:15 +05:30
Abhinav c47af36fe8 disable default sandboxing 2022-11-09 18:13:25 +05:30
Abhinav dbe4018cc3 fix import 2022-11-08 22:43:04 +05:30
Abhinav 8f9187c0f3 move initSentry above createWindow 2022-11-08 22:43:04 +05:30
Abhinav a86aac1a9f add ipc comms to fetch sentry id from keyStore 2022-11-08 11:38:36 +05:30
Abhinav 8ddf6a8820 export electron sentry user id to ui 2022-11-08 11:16:39 +05:30
Abhinav 4e4db49489 fix logErrorSentry 2022-11-05 15:57:21 +05:30
Abhinav 227dc32c02 get desktop key change version 2022-11-02 12:14:56 +05:30
Abhinav a929b090f2 change log 2022-11-01 17:48:45 +05:30
Abhinav cf23c4156d wait for 5 min for native.checkForUpdate to run and throw if any error occurs before showing update ready event 2022-11-01 17:23:01 +05:30
Abhinav 998753cc43 fix imports 2022-11-01 15:10:20 +05:30
Abhinav 436010bdba catch and return undefined if https://ente.io/desktop-key-change-version api fails 2022-11-01 15:06:45 +05:30
Abhinav 86609fe35b update log 2022-11-01 14:52:44 +05:30
Abhinav 4b9c186604 keyChange affects only mac 2022-11-01 14:49:37 +05:30
Abhinav de371083b8 refactor app updater 2022-11-01 14:46:04 +05:30