Download and extract archives from GitHub releases, URLs, and S3 via recipes
Project description
zipget-rs
A tool for downloading and extracting files from URLs, GitHub releases, and S3 buckets, with caching and a TOML recipe format.
Features
- Caching: Files are cached by URL hash to avoid re-downloading
- Multi-Format Archive Support: Extract both ZIP and tar.gz (.tgz) archives automatically
- GitHub Releases Integration: Download latest or specific tagged releases from GitHub repositories
- S3 Support: Download files from AWS S3 buckets using
s3://URLs - Semantic TOML Recipes: Process multiple downloads from TOML recipes with meaningful section names
- Version Management: Automatically upgrade GitHub releases to latest versions
- Flexible Output: Extract to directories and/or save files with custom names
- Direct Execution: Download and run executables directly with the
runcommand - Cross-Platform Installation: Install executables directly to
~/.local/binon any platform with--no-shim, or use Windows shims - Java JAR Support: Download and create launchers for Java JAR applications
- Cross-Platform: Works on Windows, macOS, and Linux
Installation
Linux / macOS
sudo curl -fsSL https://github.com/vivainio/zipget-rs/releases/latest/download/zipget-linux-x64-musl -o /usr/local/bin/zipget && sudo chmod +x /usr/local/bin/zipget
For macOS ARM (Apple Silicon):
curl -fsSL https://github.com/vivainio/zipget-rs/releases/latest/download/zipget-macos-arm64 -o ~/.local/bin/zipget && chmod +x ~/.local/bin/zipget
Windows (PowerShell)
iwr https://github.com/vivainio/zipget-rs/releases/latest/download/zipget-windows-x64.exe -OutFile ~/.local/bin/zipget.exe
Self-Update
Once installed, zipget can update itself:
zipget update
GitHub Actions
- name: Install zipget
run: |
curl -fsSL https://github.com/vivainio/zipget-rs/releases/latest/download/zipget-linux-x64-musl -o /usr/local/bin/zipget
chmod +x /usr/local/bin/zipget
- name: Download tools
run: zipget recipe tools.toml
For Windows runners:
- name: Install zipget
run: |
Invoke-WebRequest -Uri "https://github.com/vivainio/zipget-rs/releases/latest/download/zipget-windows-x64.exe" -OutFile "$env:USERPROFILE\.local\bin\zipget.exe"
echo "$env:USERPROFILE\.local\bin" | Out-File -FilePath $env:GITHUB_PATH -Append
For macOS runners (ARM):
- name: Install zipget
run: |
curl -fsSL https://github.com/vivainio/zipget-rs/releases/latest/download/zipget-macos-arm64 -o /usr/local/bin/zipget
chmod +x /usr/local/bin/zipget
From Source
git clone https://github.com/vivainio/zipget-rs
cd zipget-rs
cargo build --release
The binary will be available at target/release/zipget.
Quick Start
# Download from TOML recipe
zipget recipe demo_recipe.toml
# Download from GitHub releases (auto-detects best binary for your platform)
zipget github sharkdp/bat --unzip-to ./tools
# Download and run executables directly
zipget run BurntSushi/ripgrep -- --version
# Install tools with shims (Windows only)
zipget install google/go-jsonnet
# Install tools directly (cross-platform)
zipget install google/go-jsonnet --no-shim
# Create launcher for a Java JAR
zipget shim ./myapp.jar
Commands
Install Command
Install executables from packages to your local system:
# Install with shims (Windows only) - creates shims in ~/.local/bin
zipget install sharkdp/bat
# Install directly to ~/.local/bin (cross-platform)
zipget install sharkdp/bat --no-shim
# Install specific executable from multi-binary package
zipget install google/go-jsonnet --exe jsonnet --no-shim
# Install from specific release tag
zipget install sharkdp/bat --tag v0.24.0 --no-shim
# Install from direct URL
zipget install https://example.com/tool.zip --no-shim
Shims vs Direct Installation:
- Shims (Windows only): Creates wrapper executables that can handle different versions and provide additional functionality
- Direct Installation (
--no-shim): Copies executables directly to~/.local/bin, works on all platforms
Shim Command
Create launchers/shims for executables or Java JAR files:
# Create a launcher for a JAR file
zipget shim ./plantuml.jar
# Create with a custom name
zipget shim ./plantuml.jar --name plantuml
# Create with Java options (for JARs)
zipget shim ./myapp.jar --java-opts="-Xmx1g -Xms256m"
# Create a shim for a native executable
zipget shim ./mytool
How it works:
- For JAR files: Creates a shell script (Unix) or batch file (Windows) that runs
java -jar - For executables: Creates a shell script wrapper (Unix) or Scoop-style shim (Windows)
- Launchers are created in
~/.local/bin
Generated JAR launcher (Unix):
#!/bin/sh
exec java -Xmx1g -jar "/path/to/myapp.jar" "$@"
Generated JAR launcher (Windows):
@java -Xmx1g -jar "C:\path\to\myapp.jar" %*
Recipe Command
Process a TOML recipe file to download and extract multiple packages:
# Process a TOML recipe file
zipget recipe my_recipe.toml
# Upgrade all GitHub releases in recipe to latest versions
zipget recipe my_recipe.toml --upgrade
# Process only specific items by their section names (tags)
zipget recipe my_recipe.toml ripgrep
GitHub Command
Download the latest release binary from a GitHub repository:
# Download latest release (auto-detects best binary for your platform)
zipget github sharkdp/bat
# Download specific tagged release
zipget github sharkdp/bat --tag v0.24.0
# Save to specific file path
zipget github BurntSushi/ripgrep --save-as ./tools/ripgrep.zip
# Manually specify asset if needed (rarely required)
zipget github sharkdp/bat --asset windows-x86_64
Run Command
Download and run an executable from a package:
# Run a single executable from a GitHub release
zipget run BurntSushi/ripgrep -- --version
# Run a specific executable if multiple are found
zipget run sharkdp/bat --exe bat -- --help
# Run from a direct URL
zipget run https://example.com/tool.zip --exe mytool -- arg1 arg2
The run command:
- Downloads and caches the package (honoring existing cache)
- Extracts the package to a temporary directory
- Automatically finds executable files in the extracted content
- If only one executable is found, runs it directly
- If multiple executables are found, prompts you to specify which one using
--exe - Passes all arguments after
--to the executable - Cleans up temporary files after execution
Recipe Format
Zipget uses TOML recipe files with semantic section names. Each section name becomes an implicit tag for that download item:
[bat]
github = { repo = "sharkdp/bat", tag = "v0.24.0" }
unzip_to = "./tools"
save_as = "./downloads/bat.zip"
files = "*.exe"
[ripgrep]
github = { repo = "BurntSushi/ripgrep" }
save_as = "./tools/ripgrep.zip"
[public-tool]
url = "https://example.com/some-file.zip"
unzip_to = "./downloads"
Recipe Schema
Each section represents a download item and can have:
- url: Direct URL to download from (supports HTTP/HTTPS, S3 URLs, and local file paths starting with
/or.) - github: GitHub release specification (inline table format)
- repo: Repository in "owner/repo" format
- asset: Regex pattern to match release asset names (case-insensitive; optional, auto-detected if not specified)
- tag: Specific release tag (optional, defaults to latest)
- unzip_to: Directory where archives should be extracted (supports ZIP and tar.gz files)
- save_as: Path where the downloaded file should be saved
- files: Glob pattern for files to extract from archives (extracts all if not specified)
- profile: AWS profile to use for S3 downloads
- executable: Set to
trueto add executable permission to extracted files (Unix only) - install_exes: List of executables or JAR files to install to
~/.local/bin(supports glob patterns) - no_shim: Set to
trueto copy executables directly instead of creating shims/launchers
Java JAR Support
Zipget can download Java JAR applications and create launcher scripts for them.
Installing JARs from Recipes
[plantuml]
github = { repo = "plantuml/plantuml", asset = "plantuml.jar" }
save_as = "./tools/plantuml.jar"
install_exes = ["plantuml.jar"]
This will:
- Download
plantuml.jarfrom the GitHub release - Save it to
./tools/plantuml.jar - Create a launcher at
~/.local/bin/plantuml
Installing JARs with the Shim Command
curl -LO https://github.com/plantuml/plantuml/releases/latest/download/plantuml.jar
zipget shim ./plantuml.jar
# Now you can run: plantuml -version
JARs with Custom Java Options
zipget shim ./memory-intensive-app.jar --java-opts="-Xmx4g -XX:+UseG1GC"
GitHub Integration
Latest Releases
[bat]
github = { repo = "sharkdp/bat" }
Specific Versions
[bat]
github = { repo = "sharkdp/bat", tag = "v0.24.0" }
Manual Asset Selection (Optional)
The asset field is a regex pattern (case-insensitive) matched against release asset names:
[bat]
# Simple substring match (still works — valid regex)
github = { repo = "sharkdp/bat", asset = "windows-x86_64", tag = "v0.24.0" }
[obsidian]
# Regex to select amd64 tarball, excluding arm64 variant
github = { repo = "obsidianmd/obsidian-releases", asset = "^obsidian-[\\d.]+\\.tar\\.gz$" }
Version Upgrading
zipget recipe my_recipe.toml --upgrade
This will:
- Check the latest release for each GitHub repository
- Update tags to the latest version
- Save the updated recipe file
- Show which versions were upgraded
How It Works
- Caching: Each URL is hashed using MD5, and the downloaded file is stored as
{hash}_{filename}in a system temporary cache directory (%TEMP%\zipget-cacheon Windows,/tmp/zipget-cacheon Unix) - Cache Check: Before downloading, zipget checks if the file already exists in the cache directory
- GitHub API: For GitHub releases, the tool queries the GitHub API to get download URLs
- S3 Downloads: For S3 URLs, the tool uses AWS CLI (
aws s3 cp) to download files using your configured credentials - Download: If not cached, the file is downloaded and stored in the cache directory
- Extract: If
unzip_tois specified, the archive is extracted to the target directory (auto-detects ZIP and tar.gz formats) - Save: If
save_asis specified, the downloaded file is copied to the specified path - Run: The
runcommand additionally extracts to a temporary directory, finds executables, and executes them with provided arguments
Selective File Extraction
Use the files field to extract only specific files from archives using glob patterns.
When files is specified, the directory structure is flattened — files are extracted directly to unzip_to without preserving subdirectories:
[ripgrep]
# Archive contains: ripgrep-15.1.0-x86_64-unknown-linux-musl/rg
# Result: ./tools/rg (flattened, not ./tools/ripgrep-15.1.0-.../rg)
github = { repo = "BurntSushi/ripgrep", asset = "x86_64-unknown-linux-musl" }
unzip_to = "./tools"
files = "*/rg"
[bat-windows]
github = { repo = "sharkdp/bat", asset = "windows" }
unzip_to = "./tools"
files = "{bat.exe,LICENSE*}"
Common glob patterns:
*.exe- Extract only .exe files*.{exe,dll}- Extract .exe and .dll files*/rg- Extractrgbinary from any subdirectory (flattened){LICENSE,README*}- Extract LICENSE and README files
Setting Executable Permissions (Unix)
Use the executable field to automatically set executable permissions on extracted files:
[my-scripts]
url = "/path/to/scripts.tar.gz"
unzip_to = "./bin"
files = "*.sh"
executable = true
Local file paths (starting with / or .) are also supported in the url field.
License
MIT License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zipget-2.0.2-py3-none-win_amd64.whl.
File metadata
- Download URL: zipget-2.0.2-py3-none-win_amd64.whl
- Upload date:
- Size: 2.0 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1208505925851b472967f39270b0dd409650f40e1f987c1a3de9135e0632810
|
|
| MD5 |
5a0e5b87789e82e855db48b220cca59c
|
|
| BLAKE2b-256 |
906cd15cefe1f50fb7dbf9ad5e6ee188b7421c89efa2bdc53ef38067294f3baa
|
Provenance
The following attestation bundles were made for zipget-2.0.2-py3-none-win_amd64.whl:
Publisher:
build-and-publish.yml on vivainio/zipget-rs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zipget-2.0.2-py3-none-win_amd64.whl -
Subject digest:
f1208505925851b472967f39270b0dd409650f40e1f987c1a3de9135e0632810 - Sigstore transparency entry: 1870267317
- Sigstore integration time:
-
Permalink:
vivainio/zipget-rs@29c87b097e5a6683520128560d57f8c9cc7f5958 -
Branch / Tag:
refs/tags/v2.0.2 - Owner: https://github.com/vivainio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-and-publish.yml@29c87b097e5a6683520128560d57f8c9cc7f5958 -
Trigger Event:
push
-
Statement type:
File details
Details for the file zipget-2.0.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: zipget-2.0.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.3 MB
- Tags: Python 3, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3abee406fea115359136752c5b1c4756e61f18818c85555d31bc64a82036a092
|
|
| MD5 |
d99b25ff7f0f9129dcce86776b329c8c
|
|
| BLAKE2b-256 |
d4dfc308a63b2ed3ea08ddb55d3b3752aace01d19f5e6b320d3d893996bc6034
|
Provenance
The following attestation bundles were made for zipget-2.0.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
build-and-publish.yml on vivainio/zipget-rs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zipget-2.0.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
3abee406fea115359136752c5b1c4756e61f18818c85555d31bc64a82036a092 - Sigstore transparency entry: 1870267425
- Sigstore integration time:
-
Permalink:
vivainio/zipget-rs@29c87b097e5a6683520128560d57f8c9cc7f5958 -
Branch / Tag:
refs/tags/v2.0.2 - Owner: https://github.com/vivainio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-and-publish.yml@29c87b097e5a6683520128560d57f8c9cc7f5958 -
Trigger Event:
push
-
Statement type:
File details
Details for the file zipget-2.0.2-py3-none-macosx_11_0_arm64.whl.
File metadata
- Download URL: zipget-2.0.2-py3-none-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.0 MB
- Tags: Python 3, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e580e3f8018ec8e5b1d2719290f5979b45b773f664aa77939a06c32aa7cbe315
|
|
| MD5 |
f60b57c928d0718fc97a588a497c12b5
|
|
| BLAKE2b-256 |
e3681d107e5d4d85f7d42653b11201499ed567e671b0d49b07b2e12e6cc719a7
|
Provenance
The following attestation bundles were made for zipget-2.0.2-py3-none-macosx_11_0_arm64.whl:
Publisher:
build-and-publish.yml on vivainio/zipget-rs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zipget-2.0.2-py3-none-macosx_11_0_arm64.whl -
Subject digest:
e580e3f8018ec8e5b1d2719290f5979b45b773f664aa77939a06c32aa7cbe315 - Sigstore transparency entry: 1870267530
- Sigstore integration time:
-
Permalink:
vivainio/zipget-rs@29c87b097e5a6683520128560d57f8c9cc7f5958 -
Branch / Tag:
refs/tags/v2.0.2 - Owner: https://github.com/vivainio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-and-publish.yml@29c87b097e5a6683520128560d57f8c9cc7f5958 -
Trigger Event:
push
-
Statement type:
File details
Details for the file zipget-2.0.2-py3-none-macosx_10_12_x86_64.whl.
File metadata
- Download URL: zipget-2.0.2-py3-none-macosx_10_12_x86_64.whl
- Upload date:
- Size: 2.2 MB
- Tags: Python 3, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2abaf51c06d9572c2148aaaa07724e807da0372b1f105c3923aff0973942174e
|
|
| MD5 |
104c22a23154cb3e2ec785d623c19987
|
|
| BLAKE2b-256 |
1e1efcf745acdfdcc0ab03499b4d11d194b8b24deaec4ce0329deadf9765f600
|
Provenance
The following attestation bundles were made for zipget-2.0.2-py3-none-macosx_10_12_x86_64.whl:
Publisher:
build-and-publish.yml on vivainio/zipget-rs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zipget-2.0.2-py3-none-macosx_10_12_x86_64.whl -
Subject digest:
2abaf51c06d9572c2148aaaa07724e807da0372b1f105c3923aff0973942174e - Sigstore transparency entry: 1870267207
- Sigstore integration time:
-
Permalink:
vivainio/zipget-rs@29c87b097e5a6683520128560d57f8c9cc7f5958 -
Branch / Tag:
refs/tags/v2.0.2 - Owner: https://github.com/vivainio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-and-publish.yml@29c87b097e5a6683520128560d57f8c9cc7f5958 -
Trigger Event:
push
-
Statement type: