1.更换软件协议为AGPL

2.切换项目名称为Hua.Todo
This commit is contained in:
ShaoHua
2026-04-06 22:06:30 +08:00
parent 40a91e39b6
commit 758f6772c6
147 changed files with 1203 additions and 644 deletions
+10 -10
View File
@@ -9,12 +9,12 @@ param(
$ErrorActionPreference = "Stop"
Write-Host "====================================" -ForegroundColor Cyan
Write-Host " TodoList.Maui 启动脚本" -ForegroundColor Cyan
Write-Host " Hua.Todo.Maui 启动脚本" -ForegroundColor Cyan
Write-Host "====================================" -ForegroundColor Cyan
Write-Host ""
$mauiProjectPath = Join-Path $PSScriptRoot "src\TodoList.Maui"
$mauiProjectFile = Join-Path $mauiProjectPath "TodoList.Maui.csproj"
$mauiProjectPath = Join-Path $PSScriptRoot "src\Hua.Todo.Maui"
$mauiProjectFile = Join-Path $mauiProjectPath "Hua.Todo.Maui.csproj"
if (!(Test-Path $mauiProjectFile)) {
Write-Host "❌ MAUI 项目文件不存在: $mauiProjectFile" -ForegroundColor Red
@@ -26,15 +26,15 @@ if (!(Get-Command "dotnet" -ErrorAction SilentlyContinue)) {
exit 1
}
Write-Host "[1/2] 检查 TodoList.Maui 是否已在运行..." -ForegroundColor Yellow
Write-Host "[1/2] 检查 Hua.Todo.Maui 是否已在运行..." -ForegroundColor Yellow
$runningProcesses = Get-CimInstance Win32_Process -Filter "Name='TodoList.Maui.exe' OR Name='dotnet.exe'" | Where-Object {
$_.CommandLine -like "*TodoList.Maui*"
$runningProcesses = Get-CimInstance Win32_Process -Filter "Name='Hua.Todo.Maui.exe' OR Name='dotnet.exe'" | Where-Object {
$_.CommandLine -like "*Hua.Todo.Maui*"
}
if ($runningProcesses) {
$pids = ($runningProcesses.ProcessId | Sort-Object) -join ", "
Write-Host "⚠️ TodoList.Maui 可能已在运行中" -ForegroundColor Yellow
Write-Host "⚠️ Hua.Todo.Maui 可能已在运行中" -ForegroundColor Yellow
Write-Host " 进程 ID: ($pids)" -ForegroundColor Gray
if ($Force) {
@@ -54,11 +54,11 @@ if ($runningProcesses) {
exit 0
}
} else {
Write-Host "✓ TodoList.Maui 未运行" -ForegroundColor Green
Write-Host "Hua.Todo.Maui 未运行" -ForegroundColor Green
Write-Host ""
}
Write-Host "[2/2] 启动 TodoList.Maui..." -ForegroundColor Yellow
Write-Host "[2/2] 启动 Hua.Todo.Maui..." -ForegroundColor Yellow
$argumentList = @(
"build",
@@ -81,7 +81,7 @@ Write-Host ""
try {
$mauiProcess = Start-Process -FilePath "dotnet" -ArgumentList $argumentList -WorkingDirectory $mauiProjectPath -PassThru
Write-Host "✅ TodoList.Maui 已启动" -ForegroundColor Green
Write-Host "Hua.Todo.Maui 已启动" -ForegroundColor Green
Write-Host " 进程 ID: ($($mauiProcess.Id))" -ForegroundColor Gray
Write-Host ""
Write-Host "📝 提示:" -ForegroundColor Yellow