Skip to content

Commit 7d8830f

Browse files
committed
[sidequest] Fix build-vsix.sh for macOS compatibility
1 parent 154ff06 commit 7d8830f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/build-vsix.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ echo "$PACKAGE_OUTPUT"
4141

4242
# Extract the VSIX filename from the package output
4343
# The output contains a line like: "Packaged: /path/to/paw-workflow-X.Y.Z.vsix (N files, SIZE)"
44-
VSIX_PATH=$(echo "$PACKAGE_OUTPUT" | grep -oP 'Packaged: .*/\K[^/]+\.vsix' | head -1)
44+
# Use sed for cross-platform compatibility (macOS grep doesn't support -P)
45+
VSIX_PATH=$(echo "$PACKAGE_OUTPUT" | grep "Packaged:" | sed 's/.*Packaged: //' | sed 's/ .*//')
4546

4647
if [ -z "$VSIX_PATH" ]; then
4748
echo "Error: Could not determine VSIX filename from package output"

0 commit comments

Comments
 (0)