release: v0.1.1

This commit is contained in:
0xzio
2025-05-06 18:01:01 +08:00
parent 6495607e3c
commit c41c865105
6 changed files with 9 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "desktop",
"private": true,
"version": "0.1.0",
"version": "0.1.1",
"type": "module",
"scripts": {
"dev:android": "pnpm tauri android dev",

View File

@@ -3121,7 +3121,7 @@ checksum = "df94ce210e5bc13cb6651479fa48d14f601d9858cfe0467f43ae157023b938d3"
[[package]]
name = "penx-desktop"
version = "0.1.0"
version = "0.1.1"
dependencies = [
"actix-cors",
"actix-web",

View File

@@ -1,6 +1,6 @@
[package]
name = "penx-desktop"
version = "0.1.0"
version = "0.1.1"
description = "A Tauri App"
authors = ["you"]
edition = "2021"

View File

@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "PenX",
"version": "0.1.0",
"version": "0.1.1",
"identifier": "com.penxio.app",
"build": {
"beforeDevCommand": "pnpm vite:dev",

View File

@@ -5,7 +5,7 @@ import { toast } from 'sonner'
async function checkUpdateAndInstall({ beta }: { beta?: boolean } = {}) {
const update = await check()
console.log('========update:', update)
console.log('========update123:', update)
if (update) {
const confirmUpdate = confirm(

View File

@@ -11,6 +11,7 @@ export async function pollingSyncToRemote() {
while (true) {
console.log('sync to remote')
await sync()
await sleep(pollingInterval)
}
@@ -18,6 +19,8 @@ export async function pollingSyncToRemote() {
async function sync() {
const session = (await get('SESSION')) as SessionData
console.log('=======session polling:', session)
if (!session || !session?.siteId) return
const site = await localDB.site.where({ id: session.siteId }).first()
@@ -27,6 +30,7 @@ async function sync() {
const changes = await localDB.change
.where({ siteId: session.siteId, synced: 0 })
.sortBy('id')
console.log('=======changes:', changes)
for (const change of changes) {
if (change.synced) continue