From c5b58c61e6f6a0da185aa89f4b41f7e25c973fcd Mon Sep 17 00:00:00 2001 From: Neko Ayaka Date: Sun, 14 Dec 2025 17:46:10 +0800 Subject: [PATCH] fix(stage-tamagotchi): now h3 treats timeout as seconds instead of milliseconds --- .../src/main/services/airi/channel-server/index.ts | 4 ++-- apps/stage-tamagotchi/src/main/tray/index.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/stage-tamagotchi/src/main/services/airi/channel-server/index.ts b/apps/stage-tamagotchi/src/main/services/airi/channel-server/index.ts index 82cf573d9..b9cc7b2bb 100644 --- a/apps/stage-tamagotchi/src/main/services/airi/channel-server/index.ts +++ b/apps/stage-tamagotchi/src/main/services/airi/channel-server/index.ts @@ -24,8 +24,8 @@ export async function setupServerChannel() { reusePort: true, silent: true, gracefulShutdown: { - forceTimeout: 500, - gracefulTimeout: 500, + forceTimeout: 0.5, + gracefulTimeout: 0.5, }, }) diff --git a/apps/stage-tamagotchi/src/main/tray/index.ts b/apps/stage-tamagotchi/src/main/tray/index.ts index b88b800bf..4e8b5e89e 100644 --- a/apps/stage-tamagotchi/src/main/tray/index.ts +++ b/apps/stage-tamagotchi/src/main/tray/index.ts @@ -10,8 +10,8 @@ import { app, Menu, nativeImage, Tray } from 'electron' import { once } from 'es-toolkit' import { isMacOS } from 'std-env' -import icon from '../../resources/icon.png?asset' -import macOSTrayIcon from '../../resources/tray-icon-macos.png?asset' +import icon from '../../../resources/icon.png?asset' +import macOSTrayIcon from '../../../resources/tray-icon-macos.png?asset' import { onAppBeforeQuit } from '../libs/bootkit/lifecycle' import { setupInlayWindow } from '../windows/inlay'