11 lines
321 B
PowerShell
11 lines
321 B
PowerShell
$ErrorActionPreference = "Stop"
|
||
|
||
if (-not (Test-Path ".\.venv\Scripts\cm93db.exe")) {
|
||
throw "未发现 cm93db,请先运行 scripts\setup_env.ps1"
|
||
}
|
||
if (-not (Test-Path ".env")) {
|
||
throw "未发现 .env,请从 .env.example 复制并配置 CM93_SOURCE_DIR / MySQL"
|
||
}
|
||
|
||
& ".\.venv\Scripts\cm93db.exe" import @args
|