From 22eb6449b7e3587ae7bda10a62a380fc7e4d598f Mon Sep 17 00:00:00 2001 From: Huakun Shen Date: Tue, 18 Mar 2025 08:05:20 -0400 Subject: [PATCH] Update desktop and API package versions; change development server port and URL --- apps/desktop/package.json | 2 +- apps/desktop/src-tauri/tauri.conf.json | 2 +- apps/desktop/vite.config.js | 2 +- packages/api/src/runtime/deno.ts | 2 +- packages/api/src/version.ts | 2 +- packages/extension/src/window.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/desktop/package.json b/apps/desktop/package.json index 6969897..f3163ed 100644 --- a/apps/desktop/package.json +++ b/apps/desktop/package.json @@ -1,6 +1,6 @@ { "name": "@kksh/desktop", - "version": "0.1.34", + "version": "0.1.35", "description": "", "type": "module", "scripts": { diff --git a/apps/desktop/src-tauri/tauri.conf.json b/apps/desktop/src-tauri/tauri.conf.json index 36d32ad..1cd78a3 100644 --- a/apps/desktop/src-tauri/tauri.conf.json +++ b/apps/desktop/src-tauri/tauri.conf.json @@ -5,7 +5,7 @@ "identifier": "sh.kunkun.desktop", "build": { "beforeDevCommand": "pnpm dev", - "devUrl": "http://localhost:1420", + "devUrl": "http://localhost:1566", "beforeBuildCommand": "pnpm build", "frontendDist": "../build" }, diff --git a/apps/desktop/vite.config.js b/apps/desktop/vite.config.js index 2fd8839..94e4a0e 100644 --- a/apps/desktop/vite.config.js +++ b/apps/desktop/vite.config.js @@ -14,7 +14,7 @@ export default defineConfig(async () => ({ clearScreen: false, // 2. tauri expects a fixed port, fail if that port is not available server: { - port: 1420, + port: 1566, strictPort: true, host: host || false, hmr: host diff --git a/packages/api/src/runtime/deno.ts b/packages/api/src/runtime/deno.ts index c331556..7fdb118 100644 --- a/packages/api/src/runtime/deno.ts +++ b/packages/api/src/runtime/deno.ts @@ -2,7 +2,7 @@ import { DenoIo, RPCChannel } from "kkrpc" // deno-lint-ignore no-explicit-any export function expose(api: Record) { - const stdio = new DenoIo(Deno.stdin.readable, Deno.stdout.writable) + const stdio = new DenoIo(Deno.stdin.readable) const channel = new RPCChannel(stdio, { expose: api }) return channel } diff --git a/packages/api/src/version.ts b/packages/api/src/version.ts index 5c93fca..62671f1 100644 --- a/packages/api/src/version.ts +++ b/packages/api/src/version.ts @@ -21,7 +21,7 @@ export const breakingChangesVersionCheckpoints = [ const checkpointVersions = breakingChangesVersionCheckpoints.map((c) => c.version) const sortedCheckpointVersions = sort(checkpointVersions) -export const version = "0.1.5" +export const version = "0.1.6" export function isVersionBetween(v: string, start: string, end: string) { const vCleaned = clean(v) diff --git a/packages/extension/src/window.ts b/packages/extension/src/window.ts index 26790f0..6ee8d3e 100644 --- a/packages/extension/src/window.ts +++ b/packages/extension/src/window.ts @@ -13,7 +13,7 @@ export function launchNewExtWindow(windowLabel: string, url: string, windowConfi maxWidth: windowConfig?.maxWidth ?? undefined, maxHeight: windowConfig?.maxHeight ?? undefined, resizable: windowConfig?.resizable ?? undefined, - title: windowConfig?.title ?? undefined, + title: windowConfig?.title ?? "Kunkun Extension", fullscreen: windowConfig?.fullscreen ?? undefined, focus: windowConfig?.focus ?? undefined, transparent: windowConfig?.transparent ?? undefined,