完成运行配置目录迁移并在设置菜单样式优化前建立检查点
Security Checks / security (push) Waiting to run

This commit is contained in:
xuans committed 2026-09-05 20:58:18 +08:00
1 parent 3c455186b7
commit e8e14236db
7 files changed
+212 -24

No files matched your search

+4 -1
View File
@@ -28,7 +28,10 @@ test('前端构建必须自动同步 Go 嵌入资源', async () => {
test('开发启动必须固定运行配置根目录并集中保存日志', async () => {
const content = await read('deploy/start-dev.ps1')
assert.match(content, /\$env:SMAIL_ROOT = Join-Path \$root 'backend'/)
assert.match(content, /\$env:SMAIL_ROOT = \$root\r?\n/)
assert.match(content, /\$legacyConfig = Join-Path \$root 'backend\\config'/)
assert.match(content, /Test-Path -LiteralPath \(Join-Path \$legacyConfig \$name\)/)
assert.match(content, /\$workingDirectory = Join-Path \$root 'backend'/)
assert.match(content, /out\\backend\\smail-dev\.exe/)
assert.match(content, /test-log\\runtime/)
assert.match(content, /-WindowStyle Hidden/)