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;