1.更换软件协议为AGPL
2.切换项目名称为Hua.Todo
This commit is contained in:
+8
-8
@@ -5,18 +5,18 @@ param(
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
Write-Host "====================================" -ForegroundColor Cyan
|
||||
Write-Host " TodoList.Web 启动脚本" -ForegroundColor Cyan
|
||||
Write-Host " Hua.Todo.Web 启动脚本" -ForegroundColor Cyan
|
||||
Write-Host "====================================" -ForegroundColor Cyan
|
||||
Write-Host ""
|
||||
|
||||
$webProjectPath = Join-Path $PSScriptRoot "src\TodoList.Web"
|
||||
$webProjectPath = Join-Path $PSScriptRoot "src\Hua.Todo.Web"
|
||||
|
||||
Write-Host "[1/2] 检查 TodoList.Web 服务..." -ForegroundColor Yellow
|
||||
Write-Host "[1/2] 检查 Hua.Todo.Web 服务..." -ForegroundColor Yellow
|
||||
|
||||
$webProcess = Get-CimInstance Win32_Process -Filter "Name='node.exe'" | Where-Object { $_.CommandLine -like "*vite*" -or $_.CommandLine -like "*TodoList.Web*" }
|
||||
$webProcess = Get-CimInstance Win32_Process -Filter "Name='node.exe'" | Where-Object { $_.CommandLine -like "*vite*" -or $_.CommandLine -like "*Hua.Todo.Web*" }
|
||||
|
||||
if ($webProcess) {
|
||||
Write-Host "⚠️ TodoList.Web 服务已经在运行中" -ForegroundColor Yellow
|
||||
Write-Host "⚠️ Hua.Todo.Web 服务已经在运行中" -ForegroundColor Yellow
|
||||
Write-Host " 进程 ID: ($($webProcess.ProcessId))" -ForegroundColor Gray
|
||||
|
||||
if ($Force) {
|
||||
@@ -43,11 +43,11 @@ if ($webProcess) {
|
||||
exit 0
|
||||
}
|
||||
} else {
|
||||
Write-Host "✓ TodoList.Web 服务未运行" -ForegroundColor Green
|
||||
Write-Host "✓ Hua.Todo.Web 服务未运行" -ForegroundColor Green
|
||||
Write-Host ""
|
||||
}
|
||||
|
||||
Write-Host "[2/2] 启动 TodoList.Web 服务..." -ForegroundColor Yellow
|
||||
Write-Host "[2/2] 启动 Hua.Todo.Web 服务..." -ForegroundColor Yellow
|
||||
|
||||
if (!(Test-Path $webProjectPath)) {
|
||||
Write-Host "❌ Web 项目路径不存在: $webProjectPath" -ForegroundColor Red
|
||||
@@ -60,7 +60,7 @@ Write-Host "🚀 启动服务..." -ForegroundColor Green
|
||||
try {
|
||||
$webProcess = Start-Process -FilePath "npm.cmd" -ArgumentList "run", "dev" -WorkingDirectory $webProjectPath -PassThru
|
||||
|
||||
Write-Host "✅ TodoList.Web 服务已启动" -ForegroundColor Green
|
||||
Write-Host "✅ Hua.Todo.Web 服务已启动" -ForegroundColor Green
|
||||
Write-Host " 进程 ID: ($($webProcess.Id))" -ForegroundColor Gray
|
||||
Write-Host ""
|
||||
Write-Host "====================================" -ForegroundColor Cyan
|
||||
|
||||
Reference in New Issue
Block a user