improv: copy vsix

This commit is contained in:
tomasz-io 2024-12-04 16:47:47 -08:00
parent 99fb7c96c1
commit c48dea8c93
3 changed files with 22 additions and 2 deletions

View file

@ -22,3 +22,4 @@ continue_rc_schema.json
e2e/_output
e2e/.test-extensions
e2e/storage
e2e/vsix

View file

@ -0,0 +1,18 @@
#!/bin/bash
# echo pwd
echo "Current directory: $(pwd)"
# Find the latest VSIX file in the build directory
latest_vsix=$(ls -t ./build/continue-*.vsix | head -n1)
if [ -z "$latest_vsix" ]; then
echo "No VSIX file found in build directory"
exit 1
fi
# Create e2e/vsix directory if it doesn't exist
mkdir -p "./e2e/vsix"
# Copy the file to e2e directory with fixed name
cp "$latest_vsix" "./e2e/vsix/continue.vsix"

View file

@ -622,9 +622,10 @@
"e2e:create-storage": "mkdir -p ./e2e/storage",
"e2e:get-chromedriver": "extest get-chromedriver --storage ./e2e/storage",
"e2e:get-vscode": "extest get-vscode --storage ./e2e/storage && codesign --entitlements entitlements.plist --deep --force -s - './e2e/storage/Visual Studio Code.app'",
"e2e:install-vsix": "extest install-vsix -f ./build/continue-0.9.243.vsix --extensions_dir ./e2e/.test-extensions --storage ./e2e/storage",
"e2e:copy-vsix": "chmod +x ./e2e/get-latest-vsix.sh && bash ./e2e/get-latest-vsix.sh",
"e2e:install-vsix": "extest install-vsix -f ./e2e/vsix/continue.vsix --extensions_dir ./e2e/.test-extensions --storage ./e2e/storage",
"e2e:test": "extest run-tests './e2e/_output/*.test.js' --code_settings settings.json --extensions_dir ./e2e/.test-extensions --storage ./e2e/storage",
"e2e:all": "npm run e2e:compile && npm run e2e:create-storage && npm run e2e:get-chromedriver && npm run e2e:get-vscode && npm run e2e:install-vsix && npm run e2e:test"
"e2e:all": "npm run e2e:compile && npm run e2e:create-storage && npm run e2e:get-chromedriver && npm run e2e:get-vscode && npm run e2e:copy-vsix && npm run e2e:install-vsix && npm run e2e:test"
},
"devDependencies": {
"@biomejs/biome": "1.6.4",