Commit graph

453 commits

Author SHA1 Message Date
Manav Rathi 04be2b6a2c
Update electron updater
Trying to rule out https://github.com/electron-userland/electron-builder/issues/7127
2024-05-27 14:00:24 +05:30
Manav Rathi ea2a355bcc
Revert to the behaviour of the existing 1.6.63 client 2024-05-23 14:34:24 +05:30
Manav Rathi 5caa32b1e0
Also add for zip reading 2024-05-23 14:27:17 +05:30
Manav Rathi be9f8b8b1d
[desktop] App name is always ente now
Fixed in 7049a901f8
2024-05-20 20:09:42 +05:30
Manav Rathi dae9bdd583
[desktop] Fix logout 2024-05-20 17:21:10 +05:30
Manav Rathi 7049a901f8
Fix the app version in debug mode 2024-05-20 14:46:18 +05:30
Manav Rathi 10934b08a8
Handle first search on app start 2024-05-20 10:39:11 +05:30
Manav Rathi 34a8bdcf47
Remove unnecessary rounding 2024-05-20 10:15:41 +05:30
Manav Rathi 78420f65ab
Case 2024-05-20 10:09:41 +05:30
Manav Rathi 20dcf3e473
Annotate 2024-05-20 10:04:33 +05:30
Manav Rathi 476edd8cf5
Remove unused code paths
Only internal users come into such scenarios currently
2024-05-20 09:52:32 +05:30
Manav Rathi b420eece38
[desktop] Add note about xdg-open bug on Ubuntu
Ref: https://github.com/electron/electron/issues/31485
2024-05-17 15:24:42 +05:30
Manav Rathi af7c2edf98
Remove debugging lines 2024-05-17 14:21:37 +05:30
Manav Rathi f61b5118ba
Add a CORS workaround for uploads to arbitrary testing buckets
Workaround for the following error when trying to upload from the desktop app to a staging bucket

> ente://app/gallery:1 Access to XMLHttpRequest at
  'https://xxx-staging-xxx.s3.xxx.backblazeb2.com/...' from origin 'ente://app'
  has been blocked by CORS policy: Response to preflight request doesn't pass
  access control check: The 'Access-Control-Allow-Origin' header has a value
  'null' that is not equal to the supplied origin.
2024-05-17 11:56:10 +05:30
Manav Rathi 4160be30b9
Fix tag 2024-05-17 10:14:29 +05:30
Manav Rathi b9c4682adc
[desktop] Fix warning on windows auto update
> disableWebInstaller is set to false, you should set it to true if you do not
  plan on using a web installer. This will default to true in a future version.
2024-05-16 20:54:24 +05:30
Manav Rathi 17f3839e88
[desktop] Update to electron 30.0.6
https://github.com/electron/electron/releases/tag/v30.0.6
2024-05-16 15:51:15 +05:30
Manav Rathi e430ee3606
lf 2024-05-16 15:49:13 +05:30
Manav Rathi eaa0ddc468
Same for desktop 2024-05-16 15:46:43 +05:30
Manav Rathi 43a3df5bbf
embeddings 2024-05-16 13:43:18 +05:30
Manav Rathi f64d4943ed
log.warn 2024-05-15 15:57:45 +05:30
Manav Rathi e88f7fde36
Upgrade to Electron 30.0.5 to fix Linux crash when maximizing window
https://github.com/electron/electron/pull/42179
2024-05-15 15:43:46 +05:30
Manav Rathi ab89bc4816
Reorder and attach logs 2024-05-15 15:41:46 +05:30
Manav Rathi 45183422e2
[web] Lint concurrently 2024-05-15 13:59:10 +05:30
Manav Rathi 901c401d2a
Et 2024-05-15 13:43:24 +05:30
Manav Rathi 176431ba1f
Electron side 2024-05-15 13:18:03 +05:30
Manav Rathi 78a649cae3
[desktop] Ignore imagemagick on ARM in one more place 2024-05-14 19:47:45 +05:30
Manav Rathi 859adea2eb
Mark completed TODO 2024-05-13 20:17:15 +05:30
Manav Rathi bf7c97c006
Remove ffmpeg timeout 2024-05-13 20:03:21 +05:30
Manav Rathi 0b797cebed
Trace the error 2024-05-13 18:50:12 +05:30
Manav Rathi 5e9e1623ae
Clear input file 2024-05-13 18:45:35 +05:30
Manav Rathi 6553976beb
Fix time reporting 2024-05-13 18:37:42 +05:30
Manav Rathi 3c7c14e11c
conv 2024-05-13 16:18:03 +05:30
Manav Rathi 0e3649f9b6
Scaffold 2024-05-13 15:50:22 +05:30
Manav Rathi 1b8b840ecf
Process 2024-05-13 15:37:35 +05:30
Manav Rathi b82507f74c
Handle logout 2024-05-13 15:00:21 +05:30
Manav Rathi 11811053fa
Web 2024-05-13 14:40:32 +05:30
Manav Rathi a21cc51eb0
Plan 2024-05-13 14:20:44 +05:30
Manav Rathi b7292f2629
Add a log line for debugging 2024-05-13 11:35:24 +05:30
Manav Rathi 957c2a64df
Keep the order in the documentation examples
https://imagemagick.org/Usage/thumbnails/
2024-05-13 11:33:25 +05:30
Manav Rathi 631b1772e4
Fix mangled parameter being passed to imagemagick
Similar: https://github.com/ente-io/ente/pull/1175
2024-05-13 11:31:34 +05:30
Manav Rathi 9ca8ef9e74
The bundled binary is x86 only, bail out early on ARM
Error: Error invoking remote method 'generateImageThumbnail': Error: Command failed: '/tmp/.mount_ente-1lYbIWw/resources/image-magick' '/home/m/Downloads/VM/IMG_4484.WEBP' -auto-orient -define 'jpeg:size=1440x1440' -thumbnail '720x720>' -unsharp '0x.5' -quality 70 '/tmp/ente/9aNsp1FdLe.jpeg'
/bin/sh: 1: /tmp/.mount_ente-1lYbIWw/resources/image-magick: Exec format error

The binary is from https://github.com/ente-io/ImageMagick/
2024-05-13 11:22:13 +05:30
Manav Rathi 644e67f648
--no-sandbox does not prevent the SUID abort when added from JS
From https://github.com/toeverything/AFFiNE/issues/6722#issuecomment-2081805954

> Disable sandboxing entirely by launching with --no-sandbox. Adding this
  argument from JS is unfortunately insufficient, as the GPU process is launched
  before the main process JS is run.

Ref:
* https://github.com/electron/electron/issues/17972
2024-05-13 10:19:44 +05:30
Manav Rathi 3ba7bcbf06
Add the other CHANGELOG entries 2024-05-12 20:00:48 +05:30
Manav Rathi 5b92133aae
[desktop] Pass the SUID workaround correctly
The flag itself is documented as supported:
https://www.electronjs.org/docs/latest/api/command-line-switches

I was just passing it incorrectly (hopefully).
2024-05-12 18:41:10 +05:30
Manav Rathi d188abfe65
Add a workaround for the SUID sandbox helper error on Linux
I am able to reproduce this on Ubuntu 24 ARM.

> The SUID sandbox helper binary was found, but is not configured correctly.

See:
- https://github.com/electron/electron/issues/17972
- https://stackoverflow.com/questions/63780918/building-electron-linux-distro-the-suid-sandbox-helper-binary-was-found-but-i
2024-05-12 15:35:18 +05:30
Manav Rathi 2a3bf41937
Update instructions 2024-05-11 19:19:56 +05:30
Manav Rathi c7aa5ccd1f
Document log paths 2024-05-11 18:56:37 +05:30
Manav Rathi be329bc1c9
electron 30.0.3
https://github.com/electron/electron/releases/tag/v30.0.3

Fixed an issue where fs.createWriteStream could write out of order
https://github.com/electron/electron/pull/42046

Fixed crash after upgrade on Linux
https://github.com/electron/electron/pull/42064
2024-05-11 18:52:07 +05:30
Manav Rathi 1b3e11f713
Log errors/warnings to the console always 2024-05-10 11:00:13 +05:30