Build initial MCP SSH server

This commit is contained in:
Vibe Myass
2026-05-24 20:45:12 +00:00
commit a8f7e8f483
28 changed files with 2116 additions and 0 deletions

25
scripts/publish.sh Executable file
View File

@@ -0,0 +1,25 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
PROJECT="$ROOT_DIR/src/McpSsh.Server/McpSsh.Server.csproj"
CONFIGURATION="${CONFIGURATION:-Release}"
PUBLISH_TRIMMED="${PUBLISH_TRIMMED:-false}"
if [[ $# -gt 0 ]]; then
RIDS=("$@")
else
RIDS=(win-x64 linux-x64 linux-arm64 osx-x64 osx-arm64)
fi
for rid in "${RIDS[@]}"; do
output="$ROOT_DIR/artifacts/publish/$rid"
dotnet publish "$PROJECT" \
-c "$CONFIGURATION" \
-r "$rid" \
--self-contained true \
-o "$output" \
-p:PublishSingleFile=true \
-p:PublishTrimmed="$PUBLISH_TRIMMED" \
-p:EnableCompressionInSingleFile=true
done