Skip to content

Commit 6b13013

Browse files
Dumbrisclaude
andcommitted
fix(ci): handle SignPath output with correct filename
SignPath returns signed exe with same name as input, so no rename is needed. Check if file already has correct name before copying. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 257c592 commit 6b13013

1 file changed

Lines changed: 14 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -937,19 +937,25 @@ jobs:
937937
run: |
938938
VERSION=${GITHUB_REF#refs/tags/}
939939
ARCH="${{ matrix.arch }}"
940+
TARGET="mcpproxy-setup-${VERSION}-${ARCH}.exe"
940941
941942
echo "Preparing signed installer..."
942943
cd signed
943-
ls -laR
944+
ls -la
944945
945-
# SignPath returns signed files - find the exe
946-
SIGNED_EXE=$(find . -name "*.exe" -type f | head -1)
947-
if [ -n "$SIGNED_EXE" ]; then
948-
cp "$SIGNED_EXE" "mcpproxy-setup-${VERSION}-${ARCH}.exe"
949-
echo "✅ Signed installer: mcpproxy-setup-${VERSION}-${ARCH}.exe"
946+
# SignPath returns signed exe - verify it exists
947+
if [ -f "$TARGET" ]; then
948+
echo "✅ Signed installer already named correctly: $TARGET"
950949
else
951-
echo "❌ No signed .exe found in SignPath output"
952-
exit 1
950+
# Find and rename if needed
951+
SIGNED_EXE=$(find . -name "*.exe" -type f | head -1)
952+
if [ -n "$SIGNED_EXE" ]; then
953+
mv "$SIGNED_EXE" "$TARGET"
954+
echo "✅ Renamed to: $TARGET"
955+
else
956+
echo "❌ No signed .exe found in SignPath output"
957+
exit 1
958+
fi
953959
fi
954960
955961
- name: Upload signed Windows installer

0 commit comments

Comments
 (0)