| 1 | #!/bin/bash |
| 2 | |
| 3 | # echo pwd |
| 4 | echo "Current directory: $(pwd)" |
| 5 | |
| 6 | # Find the latest VSIX file in the build directory |
| 7 | latest_vsix=$(ls -t ./build/continue-*.vsix | head -n1) |
| 8 | |
| 9 | if [ -z "$latest_vsix" ]; then |
| 10 | echo "No VSIX file found in build directory" |
| 11 | exit 1 |
| 12 | fi |
| 13 | |
| 14 | # Create e2e/vsix directory if it doesn't exist |
| 15 | mkdir -p "./e2e/vsix" |
| 16 | |
| 17 | # Copy the file to e2e directory with fixed name |
| 18 | cp "$latest_vsix" "./e2e/vsix/continue.vsix" |