Commit graph

178 commits

Author SHA1 Message Date
Manav Rathi 9ff4989d81
Cleanup 2024-04-11 14:44:00 +05:30
Manav Rathi a1d6ef43b4
Roundtrip 2024-04-11 14:37:44 +05:30
Manav Rathi 41f7b30ca0
Wire together 2024-04-11 14:22:52 +05:30
Manav Rathi a88f551b6a
WIP IPC API 2024-04-11 13:58:52 +05:30
Manav Rathi 7bf8912dbc
Duplicate for now 2024-04-11 13:45:02 +05:30
Manav Rathi 2b6047a979
Split 2024-04-11 13:40:35 +05:30
Manav Rathi d3eb85be8d
Split 2024-04-11 13:17:56 +05:30
Manav Rathi 500022d4b9
Import onnxruntime with TypeScript types
Refs:
- https://github.com/microsoft/onnxruntime/issues/17979
2024-04-10 21:01:30 +05:30
Manav Rathi 2da9565dcb
Rearrange files 2024-04-10 20:44:52 +05:30
Manav Rathi 8f8d93d11e
Use standard import for jpeg-js 2024-04-10 20:36:46 +05:30
Manav Rathi 008b6d5186
Spruce dependencies docs 2024-04-10 20:36:46 +05:30
Manav Rathi d913cbeae5
Remove unnecessary require 2024-04-10 20:32:32 +05:30
Manav Rathi 11451efffd
Restore macOS icon
git checkout 42679bc9daa4108681683079f4cb1f2832f4578c~ -- build/icon.icns
2024-04-10 20:32:32 +05:30
Manav Rathi ecf40a70cf
[desktop] Build ARM64 variant of Windows
Fixes https://github.com/ente-io/ente/issues/1374

A customer reported that the app fails to run on Windows ARM. The error is
coming when trying to load ONNX.

ONNX runtime supports Windows ARM, e.g. see
- https://www.jsdelivr.com/package/npm/onnxruntime-node?tab=files&path=bin%2Fnapi-v3%2Fwin32
- https://github.com/microsoft/onnxruntime/issues/18078

The issue then seems to be that we're not actually building for Windows ARM. I'm
not sure about this (don't have a Windows ARM machine at hand), but my theory is
that since we don't ask Electron Builder to build for win arm64, it doesn't copy
the corresponding ONNX binary into the generated bundle.

Other refs:
- https://www.electron.build/cli.html
2024-04-10 19:33:37 +05:30
Manav Rathi c73c674ee4
Update to the new product name where possible
(without breaking auto-updates)
2024-04-10 16:07:25 +05:30
Manav Rathi e57e6845a5
Product name 2024-04-10 16:06:04 +05:30
Manav Rathi 3123caea92
Document the tray icon 2024-04-10 16:05:52 +05:30
Manav Rathi 4e3cce51de
Inline 2024-04-10 15:59:57 +05:30
Manav Rathi 127bb9988f
Remove top level wrapper 2024-04-10 15:55:58 +05:30
Manav Rathi 6ec4cc7c89
Log unhandled errors and promise rejections in the desktop app
Test code:

    setTimeout(() => testFunctionSync(), 5000);
    setTimeout(
        () => testFunction().then(() => console.log("done testFunction")),
        10000,
    );

    const testFunctionSync = () => {
        console.log("sleeping not");
        throw new Error("Handle me");
    };

    const testFunction = async () => {
        console.log("sleeping");
        await fs.mkdir("/tmp/foo", { recursive: true });
        console.log("woke up");
        throw new Error("Handle me");
    };
2024-04-10 13:35:04 +05:30
Manav Rathi af79f4f0c9
Audit app update functions 2024-04-10 12:32:43 +05:30
Manav Rathi 3c7277a0b1
onMainWindowFocus 2024-04-10 11:16:21 +05:30
Manav Rathi 170aef9b30
Rename 2024-04-10 11:06:18 +05:30
Manav Rathi 8bcf77b7f7
IPC keys 2024-04-10 11:03:36 +05:30
Manav Rathi 18606b2358
IPC cleanup 2024-04-10 10:18:06 +05:30
Manav Rathi 6a7220ca43
Remove support files for (removed) Windows GGML binary
These were added together with the GGML Windows binary in commit
c3887847bc.
2024-04-09 21:32:41 +05:30
Manav Rathi e8d224c511
Remove stale ggml reference 2024-04-09 21:29:15 +05:30
Manav Rathi 7dccdecff3
Improve log 2024-04-09 21:24:31 +05:30
Manav Rathi 4327cfdb23
Only ONNX, desktop 2024-04-09 20:46:27 +05:30
Manav Rathi af07de58f6
More docs 2024-04-09 16:36:23 +05:30
Manav Rathi b937102cda
A more apropos link 2024-04-09 16:22:02 +05:30
Manav Rathi 2b7aa372bd
Switch 2024-04-09 10:33:54 +05:30
Manav Rathi 3c9f11ee60
Tweak log format 2024-04-09 10:03:30 +05:30
Manav Rathi 90a770c619
WIP 2024-04-08 18:09:08 +05:30
Manav Rathi f4f041552f
Move electron API types to lower layer 2024-04-08 16:51:48 +05:30
Manav Rathi 48f741b792
Tweak docs 2024-04-08 15:02:32 +05:30
Manav Rathi 7be4b47e51
Tighten type checking progressively 2024-04-08 14:57:49 +05:30
Manav Rathi f65e738507
Move to types 2024-04-08 14:42:44 +05:30
Manav Rathi c8089fbb60
Inline uncaptured errors 2024-04-08 14:40:44 +05:30
Manav Rathi 15e290a993
api => services 2024-04-08 14:31:19 +05:30
Manav Rathi 12fa3be6c5
Event handler cleanup 2024-04-08 14:24:50 +05:30
Manav Rathi 5ae6d7d47b
Don't wait for ready before logging startup banner
> The only hint is to call the code in main.ts without waiting for the ready event.
>
> https://github.com/megahertz/electron-log/issues/408
2024-04-08 14:17:02 +05:30
Manav Rathi 18e47b3d4e
Synchronize startup banners 2024-04-08 14:09:59 +05:30
Manav Rathi 35736c447d
Cleanup 2024-04-08 13:59:40 +05:30
Manav Rathi c458b429a0
Let the web side log errors for the bridged methods 2024-04-08 13:58:28 +05:30
Manav Rathi c5bb479c4f
Consolidate logging / desktop 2024-04-08 13:44:39 +05:30
Manav Rathi 5810d2b762
Add yarn preview:* 2024-03-30 18:06:58 +05:30
Manav Rathi 3706b99d36
Remove debug print 2024-03-27 21:21:31 +05:30
Manav Rathi 1bb79854a5
Mollify TypeScript 2024-03-27 21:17:30 +05:30
Manav Rathi c9f8ad3e88
Tidy and prune the app's menu
- Switch to title case (discussed with others that the app's main menu is an
  appropriate choice and exception to our sentence casing otherwise).

- Prune
2024-03-27 21:12:45 +05:30