feat: version string formatting yy.mm.dd.hhmmss, app icon, and test fixes

This commit is contained in:
Riz Ashraf committed 2026-09-18 02:05:08 +01:00
1 parent 1752753fcc
commit 81aac7245b
17 files changed
+170 -412

No files matched your search

+32 -4
View File
@@ -1,4 +1,32 @@
Get-Process mcp-memory-* -ErrorAction SilentlyContinue | Stop-Process -Force
Start-Sleep -Seconds 2
foreach ($b in @('mcp-memory-server.exe', 'mcp-memory-stub.exe', 'mcp-memory-win-nvim.exe')) { $s = 'target\release\' + $b; $d = 'C:\Users\reazul.ashraf\.local\bin\' + $b; if (Test-Path $d) { Remove-Item ($d + '.bak') -Force -ErrorAction SilentlyContinue; Rename-Item $d ($b + '.bak') -Force -ErrorAction SilentlyContinue }; Copy-Item $s $d -Force }
& 'C:\Users\reazul.ashraf\.local\bin\mcp-memory-server.exe' --daemon
try {
Write-Host "Gracefully shutting down server..."
Invoke-RestMethod -Method Post -Uri "http://127.0.0.1:3000/shutdown" -ErrorAction SilentlyContinue
Start-Sleep -Seconds 2
} catch {
Write-Host "Server might already be down or unreachable."
}
$binaries = @('mcp-memory-server.exe', 'mcp-memory-stub.exe', 'mcp-memory-win-nvim.exe')
$timestamp = (Get-Date -UFormat "%s") -replace "\.",""
foreach ($b in $binaries) {
$s = "target\release\$b"
$d = "C:\Users\reazul.ashraf\.local\bin\$b"
if (Test-Path $d) {
$backupName = "$b.$timestamp.bak"
Write-Host "Renaming $b to $backupName to avoid file locks..."
Rename-Item $d $backupName -Force -ErrorAction SilentlyContinue
}
if (Test-Path $s) {
Write-Host "Deploying new $b..."
Copy-Item $s $d -Force
} else {
Write-Host "Warning: $s not found, skipping."
}
}
Write-Host "Starting new mcp-memory-server daemon..."
Start-Process -FilePath "C:\Users\reazul.ashraf\.local\bin\mcp-memory-server.exe" -WindowStyle Hidden
Write-Host "Deployment complete."