Create a desktop app using Deno + Svelte with Compile
Hello guys! I'm new to Deno and I have some questions and would love your help figuring some things out!
At the moment I have an desktop app using node + sveltekit + electron, and I since I saw that Deno was able to generate executables maybe I could just use Deno with sveltekit
The closest thing I found was https://github.com/bluwy/create-vite-extra/tree/master/template-deno-svelte
Everything worked great (except not being sveltekit if someone knows how to change it I would appreciate)
But now the big question.. how can I create a webview app using the /dist generated after deno run build?
I'm not having success creating a main.ts file that when compiling can get the files, serve them and then open the view...
GitHub
create-vite-extra/template-deno-svelte at master · bluwy/create-vit...
Extra Vite templates. Contribute to bluwy/create-vite-extra development by creating an account on GitHub.
6 Replies
Hi, i'm currently trying the same thing. Have you found a way?
hello
still nothing :c
I think you want something similar to Electron/Tauri that can embed your web app into a browser instance?
deno compile
simply embeds source code into a self contained executable. it doesn't do rendering on its own.there is a webview library that you can try https://jsr.io/@webview/webview
JSR
@webview/webview - JSR
@webview/webview on JSR: 🌐 Deno bindings for webview, a tiny library for creating web-based desktop GUIs
This was just now updated to fix Windows issue. Works great!