From 4feeee4d1a38828a26d62c9e03fbf11083732ece Mon Sep 17 00:00:00 2001 From: KiriAky 107 Date: Sat, 12 Sep 2026 15:13:10 +0800 Subject: [PATCH] =?UTF-8?q?fix(release):=20=E7=BB=9F=E4=B8=80=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E4=B8=8E=E6=A1=8C=E9=9D=A2=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/package.json | 2 +- frontend/src/services/themeImport.spec.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/package.json b/frontend/package.json index 3e53816..23dcc79 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "notes-agent-frontend", "private": true, - "version": "0.2.0", + "version": "0.3.0-alpha.1", "type": "module", "scripts": { "dev": "vite", diff --git a/frontend/src/services/themeImport.spec.ts b/frontend/src/services/themeImport.spec.ts index d1a819b..7aaba83 100644 --- a/frontend/src/services/themeImport.spec.ts +++ b/frontend/src/services/themeImport.spec.ts @@ -5,6 +5,9 @@ import { decodeThemePackage, fetchThemePackage, inspectThemePackage, installThem import paper from '@/assets/themes/paper-moments.theme?raw' afterEach(() => vi.unstubAllGlobals()) +it('uses the desktop release version for compatibility checks', () => { + expect(THEME_APP_VERSION).toBe('0.3.0-alpha.1') +}) it.each(['999.0.0', 'bad', '0.2'])('rejects unsupported minimum app version %s at inspection and install', async version => { const source = paper.replace(/min_app_version:.*\r?\n/, `min_app_version: ${version}\n`) expect((await inspectThemePackage(source)).compatible).toBe(false)