清理项目文件和文档

This commit is contained in:
zeaslity
2025-03-12 09:46:55 +08:00
parent 8e8286eb38
commit e6fc8a178f
10 changed files with 0 additions and 939 deletions

View File

@@ -1,27 +0,0 @@
try {
$ErrorActionPreference = "Stop"
Write-Host "1. Building binary exec file..." -ForegroundColor Cyan
& "C:\Users\wdd\go\bin\gox.exe" -osarch="linux/amd64" -output "build/cmii-watchdog_linux_amd64"
# 执行远程ssh命令 ssh root@192.168.35.70 "rm /root/cmii-watchdog"
Write-Host "2. Cleaning old binary file..." -ForegroundColor Yellow
ssh root@192.168.35.70 "rm -f /root/wdd/cmii-watchdog/*"
Write-Host "3. Uploading binary exec..." -ForegroundColor Green
scp build/cmii-watchdog_linux_amd64 root@192.168.35.70:/root/wdd/cmii-watchdog/
scp java/* root@192.168.35.70:/root/wdd/cmii-watchdog/
Write-Host "4. Exec the command ..." -ForegroundColor Blue
Write-Host ""
Write-Host ""
ssh root@192.168.35.70 "cd /root/wdd/cmii-watchdog/ && chmod +x cmii-watchdog_linux_amd64 && sudo bash build_cmii_watchdog.sh"
Write-Host ""
Write-Host ""
} catch {
Write-Host "操作失败: $_" -ForegroundColor Red
exit 1
}