2 Commits

Author SHA1 Message Date
614867bd12 update 2025-12-24 04:35:41 +06:00
cdf2bf5952 update 2025-12-24 04:35:13 +06:00
4 changed files with 12 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
name: Deploy name: Deploy
on: # on:
push: # push:
# tags: # tags:
# - "v[0-9]+.[0-9]+.[0-9]+" # - "v[0-9]+.[0-9]+.[0-9]+"

View File

@@ -1,13 +1,13 @@
export default defineNuxtRouteMiddleware(async (to, from) => { export default defineNuxtRouteMiddleware(async (to, from) => {
if (import.meta.dev || import.meta.server) // if (import.meta.dev || import.meta.server)
return // return
const { isTauri } = useApp() const { isTauri } = useApp()
if (!isTauri.value) if (!isTauri.value)
return return
if (from?.name) if (from?.name || !!to.redirectedFrom)
return return
const { checkForUpdates } = useUpdater() const { checkForUpdates } = useUpdater()
@@ -15,6 +15,6 @@ export default defineNuxtRouteMiddleware(async (to, from) => {
const update = await checkForUpdates() const update = await checkForUpdates()
if (update) { if (update) {
return navigateTo({ name: 'Updating' }) return navigateTo({ name: 'Updater' })
} }
}) })

View File

@@ -23,7 +23,6 @@ definePageMeta({
auth: false, auth: false,
middleware: () => { middleware: () => {
const { lastUpdate } = useUpdater() const { lastUpdate } = useUpdater()
if (!lastUpdate.value) if (!lastUpdate.value)
return navigateTo('/') return navigateTo('/')
}, },

View File

@@ -1,7 +1,7 @@
{ {
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json", "$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
"productName": "chad", "productName": "chad",
"version": "0.2.7", "version": "0.2.8",
"identifier": "xyz.koptilnya.chad", "identifier": "xyz.koptilnya.chad",
"build": { "build": {
"frontendDist": "../.output/public", "frontendDist": "../.output/public",