Skip to content

Commit 22e2218

Browse files
committed
Configure build to generate/download updates
1 parent 5e92ab4 commit 22e2218

File tree

11 files changed

+618
-16
lines changed

11 files changed

+618
-16
lines changed

app.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ export default defineComponent({
4242
document.body.dataset.isMounted = 'true'
4343
4444
logEvent(appEventTypes.appMounted)
45+
46+
if (import.meta.env.TAURI_DESKTOP) {
47+
const { init } = await import('/src/native')
48+
49+
await init()
50+
}
4551
})
4652
4753
const sizes = computed(() => {

nuxt.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,9 @@ export default defineNuxtConfig({
330330
linkFeedback: '',
331331
openaiApiKey: '',
332332
stripeMonthlyPrice: '',
333+
tauri: {
334+
desktop: '',
335+
},
333336
},
334337
},
335338

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
"funding": "https://github.com/sponsors/davidmyersdev",
88
"scripts": {
99
"build": "nuxt prepare && nuxt typecheck && nuxt generate",
10+
"build:desktop": "TAURI_SIGNING_PRIVATE_KEY=~/.tauri/octo.key TAURI_SIGNING_PRIVATE_KEY_PASSWORD= tauri build",
11+
"build:desktop:debug": "TAURI_SIGNING_PRIVATE_KEY=~/.tauri/octo.key TAURI_SIGNING_PRIVATE_KEY_PASSWORD= tauri build --debug -c ./src-tauri/tauri.dev.conf.json",
1012
"clean": "rimraf .output dev-dist dist",
1113
"dev": "nuxt dev --port 8888",
1214
"dev:full": "run-p dev firebase:start",
@@ -66,6 +68,8 @@
6668
"@tailwindcss/container-queries": "^0.1.1",
6769
"@tailwindcss/typography": "^0.5.15",
6870
"@tauri-apps/cli": "^2.1.0",
71+
"@tauri-apps/plugin-dialog": "^2.2.0",
72+
"@tauri-apps/plugin-process": "^2.2.0",
6973
"@tauri-apps/plugin-updater": "~2",
7074
"@types/culori": "^2.0.4",
7175
"@types/file-saver": "^2.0.7",

pnpm-lock.yaml

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)