Files
MemRelay/projects/4111f53b-afa5-48e1-aaf8-d70a7edc0638/技术栈与本地存储策略.md
T

24 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: 技术栈与本地存储策略
type: decision
permalink: main/projects/4111f53b-afa5-48e1-aaf8-d70a7edc0638/技术栈与本地存储策略
stable_id: b0479fa6-96a6-4bdf-a6a5-6e8aceeb0250
scope: project
project_id: 4111f53b-afa5-48e1-aaf8-d70a7edc0638
memory_type: decision
status: active
revision: 1
restored_from_commit: 6a6a895eafcca6052e81a14fca103a42635dd1c2
created_at: '2026-09-23T14:53:22.101123+00:00'
updated_at: '2026-09-23T14:53:22.101184+00:00'
tags:
- architecture
- tauri2
- rust
- vue3
- typescript
- webview2
- portable
---
编辑器技术栈确定为 Tauri 2 + Rust + Vue 3 + TypeScript。Windows WebView2 使用项目内固定版本的 Fixed Runtime,保存于当前项目目录的 vendor/webview2(或等价目录);构建时只使用本地 Runtime,不在每次编译时联网下载,缺失时应直接报错。安装后的应用数据、配置、缓存、日志、临时工作区和导出文件以可执行文件所在安装目录为根,避免写入 C 盘的 AppData/LocalAppData;WebView2 User Data Folder 也应配置到安装目录。安装包允许用户选择非 C 盘目录,优先 NSIS/Portable 方案,不默认安装到 Program Files,以避免普通用户无写权限。无法控制 Windows 系统自身的 TEMP、崩溃转储或驱动缓存,但应用主动生成的文件必须遵守安装目录策略。