feat(core): add staged self-updates and unify application version

This commit is contained in:
手瓜一十雪 committed 2026-10-18 12:50:11 +08:00
1 parent c54aeffc77
commit 5032cbb8c0
45 files changed
+1860 -165

No files matched your search

+2 -4
View File
@@ -1,9 +1,7 @@
import { APP_VERSION } from '@snowluma/common/version';
import { defineAction } from '../action-kit';
import { okResponse } from '../types';
// 后续考虑移动到一个统一的地方构建,避免版本信息分散在各个模块中。
const appVersion = typeof __APP_VERSION__ !== 'undefined' ? __APP_VERSION__ : 'dev';
export const actions = [
defineAction({
name: 'get_login_info',
@@ -72,7 +70,7 @@ export const actions = [
run: () => {
return okResponse({
app_name: 'SnowLuma',
app_version: `${appVersion}-node`,
app_version: `${APP_VERSION}-node`,
protocol_version: 'v11',
});
},