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
on:
push:
# on:
# push:
# tags:
# - "v[0-9]+.[0-9]+.[0-9]+"

View File

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

View File

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

View File

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