Initial commit: Better-Seewo EN5 plugin v1.0.1

This commit is contained in:
miao-moe
2026-06-28 01:43:01 +08:00
commit fdd3418890
22 changed files with 1309 additions and 0 deletions

48
install.ps1 Normal file
View File

@@ -0,0 +1,48 @@
# Better-EN5 插件安装脚本
# 以管理员身份运行
$ErrorActionPreference = "Stop"
$pluginName = "Better-EN5"
$seewoPath = "$env:ProgramFiles(x86)\Seewo\EasiNote5"
# 查找最新版本目录
$versionDirs = Get-ChildItem "$seewoPath\EasiNote5_*" -Directory | Sort-Object Name -Descending
if ($versionDirs.Count -eq 0) {
Write-Host "未找到希沃白板安装目录" -ForegroundColor Red
exit 1
}
$targetDir = Join-Path $versionDirs[0].FullName "Main\Extensions\$pluginName"
Write-Host "安装到: $targetDir" -ForegroundColor Cyan
# 创建插件目录
if (-not (Test-Path $targetDir)) {
New-Item -ItemType Directory -Path $targetDir -Force | Out-Null
}
# 复制插件文件
$sourceDir = Join-Path $PSScriptRoot "Better-EN5\bin\Release\net6.0-windows"
if (-not (Test-Path $sourceDir)) {
$sourceDir = Join-Path $PSScriptRoot "Better-EN5\bin\Debug\net6.0-windows"
}
if (Test-Path $sourceDir) {
Copy-Item "$sourceDir\*" $targetDir -Recurse -Force
Write-Host "插件文件已复制" -ForegroundColor Green
} else {
Write-Host "未找到构建输出目录,请先构建项目" -ForegroundColor Yellow
Write-Host "期望路径: $sourceDir" -ForegroundColor Yellow
}
# 复制 manifest.coin
$manifestSource = Join-Path $PSScriptRoot "Better-EN5\manifest.coin"
if (Test-Path $manifestSource) {
Copy-Item $manifestSource $targetDir -Force
Write-Host "manifest.coin 已复制" -ForegroundColor Green
}
Write-Host ""
Write-Host "安装完成!请重启希沃白板以加载插件。" -ForegroundColor Green
Write-Host "在希沃白板的右键菜单中可以找到 'Better-Seewo 设置' 入口。" -ForegroundColor Cyan