refactor(justfile): decouple build and deploy steps

This commit is contained in:
Riz Ashraf committed 2026-09-23 04:22:02 +01:00
1 parent e0eeb4b0a6
commit 4cae55bab3
1 file changed
+3 -3
+3 -3
View File
@@ -4,7 +4,7 @@ default:
@just --list
# Build and deploy everything across Windows and WSL
all: deploy-all
all: build-all deploy-all
# Build everything across Windows and WSL
build-all: build-win build-wsl
@@ -27,7 +27,7 @@ build-win:
cargo build --release -p mcp-memory-server -p mcp-memory-stub -p mcp-memory-win-nvim
# Deploy Windows-native binaries
deploy-win: shutdown-server build-win
deploy-win: shutdown-server
Write-Host "Deploying Windows binaries..." -ForegroundColor Cyan
Copy-Item -Force target\release\mcp-memory-stub.exe "C:\Users\reazul.ashraf\.local\bin\"; Copy-Item -Force target\release\mcp-memory-win-nvim.exe "C:\Users\reazul.ashraf\.local\bin\"
Copy-Item -Force target\release\mcp-memory-server.exe "C:\Users\reazul.ashraf\.local\bin\"
@@ -38,7 +38,7 @@ build-wsl:
wsl.exe -d Ubuntu -e bash -c 'export PATH="$PATH:/home/riz/.cargo/bin" && cd /mnt/c/Users/reazul.ashraf/workspace/rust/mcp-memory && cargo build --release -p mcp-memory-stub -p mcp-memory-linux-nvim'
# Deploy WSL-native binaries
deploy-wsl: build-wsl
deploy-wsl:
Write-Host "Deploying WSL binaries natively..." -ForegroundColor Cyan
wsl.exe -d Ubuntu -e bash -c 'export PATH="$PATH:/home/riz/.cargo/bin" && cd /mnt/c/Users/reazul.ashraf/workspace/rust/mcp-memory && cp target/release/mcp-memory-stub /home/riz/.local/bin/ && cp target/release/mcp-memory-linux-nvim /home/riz/.local/bin/'