This commit is contained in:
2025-12-24 04:35:13 +06:00
parent a4bd6705b6
commit cdf2bf5952
5 changed files with 18 additions and 13 deletions

View File

@@ -1,13 +1,13 @@
name: Deploy
on:
push:
# tags:
# - "v[0-9]+.[0-9]+.[0-9]+"
# on:
# push:
# tags:
# - "v[0-9]+.[0-9]+.[0-9]+"
# paths:
# - ".gitea/workflows/deploy-client.yml"
# - "client/**"
# paths:
# - ".gitea/workflows/deploy-client.yml"
# - "client/**"
jobs:
publish-windows:

View File

@@ -1,13 +1,15 @@
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)
console.log('pizda', to, from)
if (from?.name || !!to.redirectedFrom)
return
const { checkForUpdates } = useUpdater()
@@ -15,6 +17,6 @@ export default defineNuxtRouteMiddleware(async (to, from) => {
const update = await checkForUpdates()
if (update) {
return navigateTo({ name: 'Updating' })
return navigateTo({ name: 'Updater' })
}
})

View File

@@ -1,6 +1,7 @@
import chadApi from '#shared/chad-api'
export default defineNuxtRouteMiddleware(async (to, from) => {
console.log('ya zdes')
const { me, setMe } = useAuth()
if (!me.value && !from?.name) {

View File

@@ -17,13 +17,15 @@
</template>
<script lang="ts" setup>
console.log('jopa')
definePageMeta({
name: 'Updater',
layout: 'blank',
auth: false,
middleware: () => {
console.log('lastUpdate')
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",