A simple scripting language in C++
Ferenc Szontágh
2025-04-19 26263ab9055d2ce4f6b1ec934949bcea240b1f29
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
 
# Check if 'vsce' (Visual Studio Code Extension Manager) is installed
if ! command -v vsce &> /dev/null
then
    echo "'vsce' not found! Please install it to proceed."
    echo "Install with: npm install -g vsce"
    exit 1
fi
 
# Check if the package.json file exists
if [ ! -f "package.json" ]; then
    echo "package.json not found. Are you running this script in the extension's root directory?"
    exit 1
fi
 
# Start packaging the extension
echo "Packaging extension..."
 
vsce package
 
# If packaging succeeded, inform the user
if [ $? -eq 0 ]; then
    echo "Extension package created successfully!"
else
    echo "Error: Packaging failed."
    exit 1
fi