Sign inSign up

sctg/vsixharvester

By sctg

Updated 3 months ago

vscode extensions download for offline installation

Image
Developer tools
0

2.6K

sctg/vsixharvester repository overview

vsixHarvester

VSCode Extension Downloader in Rust

This Rust program reads the recommendations array from an extensions.json file and downloads the corresponding VSIX packages for Visual Studio Code extensions.
This is an adaptation of the original vsixHarvester, it does not use the Visual Studio Code extensions.json file, but a custom one. The custom extensions.json file allows to specify the architecture for each extension.

Features
  • Reads a list of extensions from extensions.json.
  • Downloads the latest version of each extension as a VSIX package.
  • Supports proxy configuration.
  • Option to force re-download even if the file already exists.
  • Provides verbose output for detailed logging.
Binaries
Prerequisites
  • Rust and Cargo installed on your system. You can install them from rustup.rs.
Installation
cargo install vsixHarvester
Usage
vsixHarvester [OPTIONS]
Options
  • -i, --input <INPUT>: Path to the extensions.json file. Default is ./extensions.json.
  • -d, --destination <DESTINATION>: Destination folder to save the VSIX files. Default is ./extensions.
  • --no-cache: Force re-download even if the extension file already exists.
  • --proxy <PROXY>: Proxy URL to use for HTTP requests.
  • -v, --verbose: Enable verbose output for detailed logging.
  • -h, --help: Print help information.
Example
vsixHarvester \
  --input ./your/path/to/extensions.json \
  --destination ./your/path/to/extensions \
  --no-cache \
  --verbose
Architecture options
  • win32-x64
  • win32-arm64
  • darwin-x64
  • darwin-arm64
  • linux-x64
  • linux-arm64
extensions.json Format

The extensions.json file should have the following structure:

{
  "universal": [
    // "publisher.extensionName",
    // "anotherPublisher.anotherExtensionName",
    "GitHub.copilot",
    "GitHub.copilot-chat",
    "golang.Go",
    "yzhang.markdown-all-in-one",
    "eamodio.gitlens"
  ],
  "linux_x64":[
    "rust-lang.rust-analyzer",
    "ms-python.python"
  ],
  "linux_arm64":[
    "rust-lang.rust-analyzer",
    "ms-python.python"
  ]
}
Thanks

Tag summary

Content type

Image

Digest

sha256:75a5eac30

Size

31.4 MB

Last updated

3 months ago

docker pull sctg/vsixharvester