Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 41 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ jobs:
args: ""

runs-on: ${{ matrix.platform }}
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
steps:
- name: Check out git repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -258,6 +262,43 @@ jobs:
- name: Install frontend dependencies
run: pnpm install

- name: Sign embedded Go client binary (macOS only)
if: matrix.platform == 'macos-latest'
env:
APPLE_SIGNING_IDENTITY: ${{ env.APPLE_SIGNING_IDENTITY }}
run: |
echo "Signing embedded Go client binary..."

CLIENT_BIN="src-tauri/resources/bin/darwin-${{ matrix.target == 'aarch64-apple-darwin' && 'arm64' || 'amd64' }}/client"

if [ ! -f "$CLIENT_BIN" ]; then
echo "❌ Embedded binary not found: $CLIENT_BIN"
ls -R src-tauri/resources/bin || true
exit 1
fi

echo "Found client binary: $CLIENT_BIN"

codesign --force --options runtime --timestamp \
--sign "$APPLE_SIGNING_IDENTITY" \
"$CLIENT_BIN"

JUMPSERVERCLIENT_BIN="src-tauri/resources/bin/darwin-${{ matrix.target == 'aarch64-apple-darwin' && 'arm64' || 'amd64' }}/JumpServerClient"

if [ ! -f "$JUMPSERVERCLIENT_BIN" ]; then
echo "❌ Embedded binary not found: $JUMPSERVERCLIENT_BIN"
ls -R src-tauri/resources/bin || true
exit 1
fi

echo "Found JumpServerClient binary: $JUMPSERVERCLIENT_BIN"

codesign --force --options runtime --timestamp \
--sign "$APPLE_SIGNING_IDENTITY" \
"$JUMPSERVERCLIENT_BIN"

echo "✓ Embedded Go client binary signed successfully."

- name: Build Tauri app
uses: tauri-apps/tauri-action@v0
env:
Expand All @@ -267,7 +308,6 @@ jobs:
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
APPLE_SIGNING_IDENTITY: ${{ env.APPLE_SIGNING_IDENTITY }}
APPLE_TEAM_ID: ${{ env.APPLE_TEAM_ID }}

with:
tagName: ${{ env.VERSION }}
Expand Down
Loading