Skip to content

Commit e5c0968

Browse files
committed
fix: Windows packaging — find mcpp.exe from target/ instead of stale $MCPP_SELF
1 parent 92efa9c commit e5c0968

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/ci-windows.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,12 @@ jobs:
119119
WRAPPER="mcpp-${VERSION}-windows-x86_64"
120120
ZIPNAME="${WRAPPER}.zip"
121121
122+
MCPP_BIN=$(find target -name "mcpp.exe" -path "*/bin/*" | head -1)
123+
test -n "$MCPP_BIN" || { echo "FAIL: no mcpp.exe in target/"; exit 1; }
124+
122125
STAGING=$(mktemp -d)
123126
mkdir -p "$STAGING/$WRAPPER/bin" "$STAGING/$WRAPPER/registry/bin"
124-
cp "$MCPP_SELF" "$STAGING/$WRAPPER/bin/mcpp.exe"
127+
cp "$MCPP_BIN" "$STAGING/$WRAPPER/bin/mcpp.exe"
125128
printf '@echo off\r\n"%%~dp0bin\\mcpp.exe" %%*\r\n' > "$STAGING/$WRAPPER/mcpp.bat"
126129
cp README.md "$STAGING/$WRAPPER/" 2>/dev/null || true
127130
cp LICENSE "$STAGING/$WRAPPER/" 2>/dev/null || true

0 commit comments

Comments
 (0)