Bob/bob-language-extension/create-vsix.sh
Bobby Lucero 72a1b82b43 More things
- Add while, for, and do-while loops with break/continue
- Implement assignment statements (prevents if(x=10) bugs)
- Keep assignment expressions only for for-loop clauses
- Fix critical memory management bug (dangling pointers in cleanup)
- Add automatic memory cleanup with conservative reference counting
- Consolidate documentation into single reference file
- Add comprehensive test coverage for all loop types and edge cases
- VSCode extension for bob highlighting and snippets
2025-08-06 00:57:36 -04:00

44 lines
1.3 KiB
Bash
Executable File

#!/bin/bash
# Create a simple VSIX package without npm
echo "Creating Bob Language Extension VSIX package..."
# Read version from package.json
VERSION=$(grep '"version"' package.json | sed 's/.*"version": "\([^"]*\)".*/\1/')
echo "Building version: $VERSION"
# Create a temporary directory for the package
TEMP_DIR=$(mktemp -d)
PACKAGE_DIR="$TEMP_DIR/bob-language-$VERSION"
# Create the extension directory structure
mkdir -p "$TEMP_DIR/extension"
# Copy all extension files to the extension directory
cp package.json "$TEMP_DIR/extension/"
cp language-configuration.json "$TEMP_DIR/extension/"
cp -r syntaxes "$TEMP_DIR/extension/"
cp -r snippets "$TEMP_DIR/extension/"
cp -r themes "$TEMP_DIR/extension/"
cp README.md "$TEMP_DIR/extension/"
# Create the VSIX file (simple zip with .vsix extension)
cd "$TEMP_DIR"
zip -r "bob-language-$VERSION.vsix" extension/
# Move to the extension directory
mv "bob-language-$VERSION.vsix" /Users/bobbylucero/Developer/Bob/bob-language-extension/
# Clean up
rm -rf "$TEMP_DIR"
echo "VSIX package created: bob-language-$VERSION.vsix"
echo ""
echo "To install in Cursor:"
echo "1. Open Cursor"
echo "2. Go to Extensions (Cmd+Shift+X)"
echo "3. Click the '...' menu and select 'Install from VSIX...'"
echo "4. Select the bob-language-$VERSION.vsix file"
echo ""
echo "Or simply restart Cursor - the extension should already be working!"