Manav Rathi
8f2bb9c861
Add note about custom errors
2024-03-19 19:18:05 +05:30
Manav Rathi
83477cfe37
Forward clearElectronStore
2024-03-19 19:18:05 +05:30
Manav Rathi
3ce8513e48
Move more standalone methods to preload
2024-03-19 19:18:05 +05:30
Manav Rathi
b3289f2b8d
Remove (kindof) unused reloadWindow IPC
...
We now bundle the renderer code within the app. So a load-fail indicates
something really wrong, not something we can deal with upfront (the code wasn't
probably even working - e.g. it was assigning to a function parameter
mainWindow, not the actual global var behind it).
2024-03-19 19:18:05 +05:30
Manav Rathi
3a6c7b2dcd
Remove unused sendNotification IPC
2024-03-19 19:18:05 +05:30
Manav Rathi
502469e97f
Move some non-duplicated FS related functions to preload
2024-03-19 19:18:05 +05:30
Manav Rathi
c98762b448
Inline ML related functions
2024-03-19 19:18:05 +05:30
Manav Rathi
e00b8fd2f1
Remove unused IPC for getPlatform
2024-03-19 19:18:05 +05:30
Manav Rathi
eeaa5165ab
Remove custom cache directory
...
From discussions, it seems that it was pre-emptively added but not specifically
requested by a customer. We can bring this back later if needed, or at least
offer better options to clean it, but for now I'm pruning the IPC surface to
reduce the amount of work needed for handling contextIsolation and sandboxing.
2024-03-19 19:18:04 +05:30
Manav Rathi
e4684b22df
Move out the electron-builder config to separate file
2024-03-19 19:17:01 +05:30
Manav Rathi
d80fad6cf1
Remove unused vscode extension support
...
This doesn't belong in the repo even if were used
https://github.com/standard/vscode-standard
2024-03-19 19:17:01 +05:30
Manav Rathi
a8de049519
Update concurrently's major version
...
No breaking changes that impact us - https://github.com/open-cli-tools/concurrently/releases
2024-03-19 19:17:01 +05:30
Manav Rathi
e9fa525fe9
Remove unused electron-download
...
It was used for downloading symbols
2024-03-19 19:17:01 +05:30
Manav Rathi
bff58f7b78
Update eslint settings to match main project
2024-03-19 19:17:01 +05:30
Manav Rathi
a0f95b6080
Settle on a tsconfig for now
...
Electron also comes with its own type definitions, and from a (possibly dated)
blog post announcing this I got that we should not be overriding it with
@types/node: https://www.electronjs.org/pt/blog/typescript
2024-03-19 19:17:01 +05:30
Manav Rathi
c19370ec51
Outline an ideal tsconfig.json
2024-03-19 19:17:01 +05:30
Manav Rathi
341f0fa559
Upgrade TypeScript
2024-03-19 19:17:01 +05:30
Manav Rathi
e64d44639d
Document the conceputal way forward
...
Alternatives considered:
- https://github.com/alex8088/electron-toolkit
- https://electron-vite.org/
- https://github.com/cawa-93/vite-electron-builder/
2024-03-19 19:17:01 +05:30
Manav Rathi
04b9966425
Quicker quick
...
Ref: https://webpack.electron.build/building
2024-03-19 19:17:01 +05:30
Manav Rathi
0e861d5c48
Add some notes
...
The helpful snippet about the purpose of install-app-deps taken from
https://webpack.electron.build/dependency-management
2024-03-19 19:17:01 +05:30
Manav Rathi
b7b33eba4a
Switch to contextBridge - Part 1
2024-03-19 19:17:01 +05:30
Manav Rathi
1266648562
Merge docs
2024-03-19 19:17:01 +05:30
Manav Rathi
eb4f9402db
Enable prose-wrap
2024-03-19 19:17:01 +05:30
Manav Rathi
983beb89dc
Enable prose-wrap
2024-03-19 19:17:01 +05:30
Manav Rathi
f29d9e1583
Re-enable contextIsolation and sandboxing
...
Things will break, but let's try to fix them. In the current state, this is
preventing us from running `yarn dev` without reverting back to Electron 21.
2024-03-19 19:17:01 +05:30
Manav Rathi
d83f9d0210
Still need submodules
...
Until web needs them
2024-03-19 19:17:01 +05:30
Manav Rathi
b79f8347b6
Import the existing DesktopDistribute notes
2024-03-14 20:31:47 +05:30
Manav Rathi
a5e6f0cc30
Let Prettier 3 have a go at it
2024-03-12 18:01:09 +05:30
Manav Rathi
2322b41f67
Watch during dev
2024-03-12 17:56:46 +05:30
Manav Rathi
685e75d97d
Switch to upstream
2024-03-12 17:38:39 +05:30
Manav Rathi
cde87716a1
Remove the custom next-electron-server
...
The only change this has in addition to next-electron-server seems to be
https://github.com/ente-io/next-electron-server/pull/1/files , will try to test
along the way to determine its impact.
2024-03-12 17:02:28 +05:30
Manav Rathi
dff0af3397
Fix path to main process entrypoint
2024-03-12 16:47:41 +05:30
Manav Rathi
c8b9b4cd8f
Document better
2024-03-12 16:33:43 +05:30
Manav Rathi
d7cd2cecbc
Default buildResources is build
2024-03-12 16:12:53 +05:30
Manav Rathi
e219197e2f
Fix import
2024-03-12 15:07:06 +05:30
Manav Rathi
9b6e47d291
[desktop] Remove sentry
...
See 70cddfdf0b
2024-03-12 13:54:17 +05:30
Manav Rathi
84926cbee1
build take 2
2024-03-11 18:52:28 +05:30
Manav Rathi
027ae1cfb9
build => resources
2024-03-11 17:37:43 +05:30
Manav Rathi
621f81355b
Work towards fixing build
2024-03-11 17:37:10 +05:30
Manav Rathi
849b61c5cf
Document some and fix the path
2024-03-11 17:29:39 +05:30
Manav Rathi
267ad0d11f
[desktop] Fix yarn build
2024-03-11 17:04:17 +05:30
Manav Rathi
88741083fe
Prettier 3 + reformat (same as web)
2024-03-11 16:46:52 +05:30
Manav Rathi
829406fa62
Tweak .gitignore
2024-03-11 16:38:32 +05:30
Manav Rathi
df13eac6ef
Remove unused files
2024-03-11 16:35:00 +05:30
Manav Rathi
25dda3598c
Remove husky and lint-staged
2024-03-11 16:31:48 +05:30
Manav Rathi
918e70b516
Update links to GitHub from within the apps
2024-03-03 18:08:11 +05:30
Manav Rathi
6f7a47f04e
Update desktop/ to account for new monorepo structure
2024-03-02 17:57:37 +05:30
Manav Rathi
0fc7f31818
Remove the recursive submodule
2024-03-01 16:38:56 +05:30
Manav Rathi
d7ef0e238c
Add README notices about the in-progress migration to this repository
2024-03-01 16:35:45 +05:30
Manav Rathi
9cdaabc403
Move all submodules to the top level ( #505 )
...
## Description
## Tests
2024-03-01 16:16:25 +05:30