From 90de67928ae94e43efe9486e8e7bf4742d6952bf Mon Sep 17 00:00:00 2001 From: mikhailm-coder Date: Mon, 10 Aug 2026 14:09:47 +0200 Subject: [PATCH] Ship CoreModule.js in both release archives Windows zip gets it at root next to meshagent.exe; macOS tar.gz gets it as a sibling of MeshAgent.app (where the agent loads it from in OpenFrame mode) to keep the codesign/notarization seal intact. Co-Authored-By: Claude Fable 5 --- .github/workflows/release.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8bf6dad2..ef93910a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -223,20 +223,24 @@ jobs: - name: Prepare release artifacts run: | set -e + [ -f CoreModule.js ] || { echo "::error::CoreModule.js missing from checkout"; exit 1; } mkdir -p final-artifacts/clients # macOS - reconstruct .app bundle and archive + # CoreModule.js goes next to the .app (agent loads it from there); inside would break the codesign seal if [ -d "release-artifacts/meshagent-mac-universal/Contents" ]; then mkdir -p release-artifacts/meshagent-mac-universal-app mv release-artifacts/meshagent-mac-universal release-artifacts/meshagent-mac-universal-app/MeshAgent.app + cp CoreModule.js release-artifacts/meshagent-mac-universal-app/ tar -czvf "final-artifacts/clients/meshagent-macos-universal.tar.gz" \ - -C "release-artifacts/meshagent-mac-universal-app" MeshAgent.app + -C "release-artifacts/meshagent-mac-universal-app" MeshAgent.app CoreModule.js fi # Windows if [ -d "release-artifacts/meshagent-windows-amd64" ]; then + cp CoreModule.js release-artifacts/meshagent-windows-amd64/ (cd "release-artifacts/meshagent-windows-amd64" && \ - zip "${GITHUB_WORKSPACE}/final-artifacts/clients/meshagent-windows-amd64.zip" ${{ env.BINARY_NAME }}.exe) + zip "${GITHUB_WORKSPACE}/final-artifacts/clients/meshagent-windows-amd64.zip" "${BINARY_NAME}.exe" CoreModule.js) fi # Verify all expected artifacts exist @@ -254,6 +258,7 @@ jobs: ## MeshAgent Clients - **macOS** (Universal App Bundle): \`meshagent-macos-universal.tar.gz\` - Extract and run MeshAgent.app - **Windows** (amd64): \`meshagent-windows-amd64.zip\` + - Both archives include \`CoreModule.js\` (OpenFrame agent core) EOF - name: Create Release