feat: 自动化version打包

This commit is contained in:
手瓜一十雪
2025-11-13 18:31:55 +08:00
parent 7b65fa581a
commit 5622f5a04a
9 changed files with 439 additions and 2 deletions

9
packages/napcat-common/src/env.d.ts vendored Normal file
View File

@@ -0,0 +1,9 @@
/// <reference types="vite/client" />
declare global {
interface ImportMetaEnv {
readonly VITE_NAPCAT_VERSION: string;
}
}
export {};

View File

@@ -1 +1 @@
export const napCatVersion = '4.9.42';
export const napCatVersion = import.meta.env.VITE_NAPCAT_VERSION || 'alpha';