Replies: 1 comment
|
Including .../svelte-app/distSo don't use the same {
"desktop": {
"output": {
"macos": "./desktop-dist/MyApp.app"
}
}
}Then run the web build first, then package: deno task build # must create ./dist/index.html etc.
deno desktop --allow-env --allow-sys .If this is a SvelteKit app, make sure the SvelteKit adapter/build is actually producing a static Vite-style |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Either I'm overlooking or it's not there. I can't find a simple SvelteKit demo,
I've tried based on what I could find on docs.
Anyways, if dist folder is in the root, (assuming) it just keep keeps adding dist folder (previous build) inside the new build.
Because original build was around 257mb, later turned into 4gb.
Then I've tried moving it to outside like below:
Then it throws an error.
Here is the full deno.json
{ "name": "my-app", "version": "1.4.0", "exports": "./main.ts", "desktop": { "app": { "name": "Svelte App", "icons": { "macos": "./icons/app.icns", "windows": "./icons/app.ico", "linux": "./icons/app.png" }, "deepLinks": ["myapp"] }, "backend": "webview", "output": { "macos": "../dist/MyApp.app" } }, "unstable": ["detect-cjs", "node-globals", "unsafe-proto", "sloppy-imports"] }main.ts
vite.config.ts
Rest is generic SvelteKit project.
Also tried without main.ts
or editing main.ts to
All reactions