refactor(justfile): decouple build and deploy steps
This commit is contained in:
1 parent
e0eeb4b0a6
commit
4cae55bab3
1 file changed
+3
-3
@@ -4,7 +4,7 @@ default:
|
|||||||
@just --list
|
@just --list
|
||||||
|
|
||||||
# Build and deploy everything across Windows and WSL
|
# Build and deploy everything across Windows and WSL
|
||||||
all: deploy-all
|
all: build-all deploy-all
|
||||||
|
|
||||||
# Build everything across Windows and WSL
|
# Build everything across Windows and WSL
|
||||||
build-all: build-win build-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
|
cargo build --release -p mcp-memory-server -p mcp-memory-stub -p mcp-memory-win-nvim
|
||||||
|
|
||||||
# Deploy Windows-native binaries
|
# Deploy Windows-native binaries
|
||||||
deploy-win: shutdown-server build-win
|
deploy-win: shutdown-server
|
||||||
Write-Host "Deploying Windows binaries..." -ForegroundColor Cyan
|
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-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\"
|
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'
|
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-native binaries
|
||||||
deploy-wsl: build-wsl
|
deploy-wsl:
|
||||||
Write-Host "Deploying WSL binaries natively..." -ForegroundColor Cyan
|
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/'
|
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/'
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user