Skip to content

Commit bbf493e

Browse files
Fix MacOS native build
1 parent 6b4a85a commit bbf493e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/create-github-release.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,10 @@ jobs:
3232
run: |
3333
mkdir dist
3434
35-
# Linux/macOS binaries may have no extension, Windows has .exe
36-
BIN_PATH=$(find target -type f \( -name "*.exe" -o -perm -111 \) | head -n 1)
37-
38-
# MacOS fallback: if not found, pick any file in target
39-
if [[ -z "$BIN_PATH" ]]; then
40-
BIN_PATH=$(find target -type f | head -n 1)
35+
if [[ "$SAFE_OS_NAME" == "windows" ]]; then
36+
BIN_PATH=$(find target -type f -name "jfiletreeprettyprinter.exe")
37+
else
38+
BIN_PATH=$(find target -type f -name "jfiletreeprettyprinter")
4139
fi
4240
4341
echo "Found binary: $BIN_PATH"

0 commit comments

Comments
 (0)