feat: 完成 v0.6.0 墨呈品牌迁移

This commit is contained in:
SkyJourney
2026-08-02 10:09:14 +08:00
parent 58f87cc19f
commit 9a2aa3c341
39 changed files with 451 additions and 81 deletions
+16 -1
View File
@@ -9,6 +9,17 @@ const rootPackage = JSON.parse(
"utf8"
)
) as { version: string };
const productBrand = JSON.parse(
readFileSync(
fileURLToPath(new URL("../../product.json", import.meta.url)),
"utf8"
)
) as {
displayName: string;
windowTitle: string;
slogan: string;
description: string;
};
export default defineConfig({
plugins: [react()],
@@ -16,7 +27,11 @@ export default defineConfig({
new URL("../../logos/web", import.meta.url)
),
define: {
__APP_VERSION__: JSON.stringify(rootPackage.version)
__APP_VERSION__: JSON.stringify(rootPackage.version),
__APP_DISPLAY_NAME__: JSON.stringify(productBrand.displayName),
__APP_WINDOW_TITLE__: JSON.stringify(productBrand.windowTitle),
__APP_SLOGAN__: JSON.stringify(productBrand.slogan),
__APP_DESCRIPTION__: JSON.stringify(productBrand.description)
},
build: {
rollupOptions: {