This repository contains tools and files for building custom AWS language server packages with modified JavaScript files.
-
build-and-copy.sh
Purpose: Automates the complete build and packaging process for AWS language server packages with custom modifications. Key Steps:-
Parameter Validation: Requires a VERSION parameter to run
-
Environment Cleanup: • Removes old manifest files, JavaScript files, and version directories • Cleans the generateBugBashBuilds workspace
-
Manifest Download: • Downloads the latest manifest.json from AWS servers
-
Production File Download: • Runs downloader.py to fetch production packages
-
Local Build Process: • Navigates to the language server runtime directory • Executes npm run local-build to compile custom code
-
File Copy Operations: • Copies built aws-lsp-codewhisperer.js from the build directory • Copies built amazonq-ui.js from the chat client build directory
-
Package Generation: • Executes zip.sh with the VERSION parameter to create custom packages
-
Manifest Update: • Runs update_manifest.py to update manifest with new version information
-
./build-and-copy.sh VERSION
- darwin-arm64 & x64
- linux-arm64 & x64
- windows-arm64 & x64
Gives the URL to the new manifest.json file
- Update manifestUrl in
aws-toolkit-vscode/packages/amazonq/src/lsp/config.ts
- Update supportedVersions to the new VERSION
- Run -
npm run package
for aws-toolkit-vscode