Skip to content

Commit aa5237b

Browse files
committed
Include install scripts in release archives + VirusTotal scan
tar.gz archives now contain install.sh alongside the binary. zip archives now contain install.ps1. Users who download an archive get everything needed to install without fetching scripts separately from the repo. VirusTotal scan also covers the scripts since they're extracted from archives into the scan directory.
1 parent 7f579f9 commit aa5237b

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,9 @@ jobs:
254254

255255
- name: Archive standard binary
256256
run: |
257-
cp LICENSE build/c/
257+
cp LICENSE install.sh build/c/
258258
tar -czf codebase-memory-mcp-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz \
259-
-C build/c codebase-memory-mcp LICENSE
259+
-C build/c codebase-memory-mcp LICENSE install.sh
260260
261261
- name: Build UI binary
262262
run: scripts/build.sh --with-ui --version ${{ inputs.version }} CC=${{ matrix.cc }} CXX=${{ matrix.cxx }}
@@ -271,9 +271,9 @@ jobs:
271271

272272
- name: Archive UI binary
273273
run: |
274-
cp LICENSE build/c/
274+
cp LICENSE install.sh build/c/
275275
tar -czf codebase-memory-mcp-ui-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz \
276-
-C build/c codebase-memory-mcp LICENSE
276+
-C build/c codebase-memory-mcp LICENSE install.sh
277277
278278
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
279279
with:
@@ -310,7 +310,7 @@ jobs:
310310
BIN=build/c/codebase-memory-mcp
311311
[ -f "${BIN}.exe" ] && BIN="${BIN}.exe"
312312
cp "$BIN" codebase-memory-mcp.exe
313-
zip codebase-memory-mcp-windows-amd64.zip codebase-memory-mcp.exe LICENSE
313+
zip codebase-memory-mcp-windows-amd64.zip codebase-memory-mcp.exe LICENSE install.ps1
314314
315315
- name: Build UI binary
316316
shell: msys2 {0}
@@ -322,7 +322,7 @@ jobs:
322322
BIN=build/c/codebase-memory-mcp
323323
[ -f "${BIN}.exe" ] && BIN="${BIN}.exe"
324324
cp "$BIN" codebase-memory-mcp.exe
325-
zip codebase-memory-mcp-ui-windows-amd64.zip codebase-memory-mcp.exe LICENSE
325+
zip codebase-memory-mcp-ui-windows-amd64.zip codebase-memory-mcp.exe LICENSE install.ps1
326326
327327
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
328328
with:
@@ -655,7 +655,11 @@ jobs:
655655
mv binaries/codebase-memory-mcp.exe "binaries/${NAME}.exe"
656656
fi
657657
done
658-
echo "=== Extracted binaries for scanning ==="
658+
# Also include install scripts (users curl | sh these)
659+
cp install.sh binaries/install.sh 2>/dev/null || true
660+
cp install.ps1 binaries/install.ps1 2>/dev/null || true
661+
662+
echo "=== Files for scanning ==="
659663
ls -la binaries/
660664
661665
- name: Scan extracted binaries with VirusTotal

0 commit comments

Comments
 (0)