From 34e396271dc41e2d982c9f91c19ba9d168abd9e8 Mon Sep 17 00:00:00 2001 From: grngxd <36968271+grngxd@users.noreply.github.com> Date: Fri, 27 Jun 2025 15:14:59 +0100 Subject: [PATCH] oosp --- .gitignore | 1 - runtime/out/preload.d.ts | 11 +++++++++++ runtime/out/preload.js | 12 ++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 runtime/out/preload.d.ts create mode 100644 runtime/out/preload.js diff --git a/.gitignore b/.gitignore index eb92321..d194f34 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ tmp/ -out/ *.exe \ No newline at end of file diff --git a/runtime/out/preload.d.ts b/runtime/out/preload.d.ts new file mode 100644 index 0000000..b55de9c --- /dev/null +++ b/runtime/out/preload.d.ts @@ -0,0 +1,11 @@ +declare const tiramisu: { + invoke: (name: string, ...args: any[]) => Promise; + fs: { + readFile: (path: string) => Promise; + readDir: (path: string) => Promise; + exists: (path: string) => Promise; + }; + notifications: { + notify: (message: string, ico?: string) => Promise; + }; +}; diff --git a/runtime/out/preload.js b/runtime/out/preload.js new file mode 100644 index 0000000..bff5712 --- /dev/null +++ b/runtime/out/preload.js @@ -0,0 +1,12 @@ +const tiramisu = { + invoke: window.__TIRAMISU_INTERNAL_invoke, + fs: { + readFile: window.__TIRAMISU_FILESYSTEM_readFile, + readDir: window.__TIRAMISU_FILESYSTEM_readDir, + exists: window.__TIRAMISU_INTERNAL_exists, + }, + notifications: { + notify: window.__TIRAMISU_NOTIFICATIONS_notify, + }, +}; +window.tiramisu = tiramisu;